Giter VIP home page Giter VIP logo

laradminator's Introduction

laradminator's People

Contributors

dependabot[bot] avatar ilyes-kechidi avatar kossa avatar ohtormen avatar redidizzy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laradminator's Issues

Best practice to dynamically add form fields

I plan to do some sort of "Order building" form, thus my users will add products to an order ... I would like to know how would you do this with laradminator, or if you know some other project which covers this matter

Install jQuery

So i wanted to add jquery in Laradminator
installed via npm like other included dependencies

but i cant use it just like included dependencies can you tell me where i did wrong?

Can't access admin url

In this release can't access admin route.
127.0.0.1 is ok.
127.0.0.1/admin ( 404)

Don't show any errors.
I can see only 404 not found.
I have done these steps.

git clone https://github.com/kossa/laradminator.git

cd laradminator

composer install # Install backend dependencies

sudo chmod 777 storage/ -R # Chmod Storage

php artisan storage:link # Enable link to storage

cp .env.example .env # Update database credentials configuration

php artisan key:generate # Generate new keys for Laravel

php artisan migrate:fresh --seed # Run migration and seed users and categories for testing

yarn install # or npm i to Install node dependencies(>= node 9.x)

npm run production # To compile assets for prod

adding more dependencies

So i wanted to add select2 in laradminator
installed via npm and adding folder select2 and index.js in assets folder just like other included dependencies
but i cant use it just like included dependecies can you tell me where i did wrong?

Best practices for personal javascript code

It's a question, and I do not know if this place is best to ask. So what do you think about small pieces of javascript code (such as forms ajax calls, some frontend behavior, some component-specific behavior, etc.), should be placed inside a folder like /resources/js/utils/some-folder? Where you put your javascript codes of this type, in time, we're not talking about VueComponents, hum?

server.php is an IDP.ALEXA.51 Trojan

hello sir,

After successful installation and download, my antivirus popped with the following issue,

Server.php is an IDP.ALEXA.51 Trojan!

I opened server.php and there was the usual code or any SERVER.PHP in any laravel framework

Delete some functions in a login page

Hello. I'm newbie, just started learning laravel. Can you explain me a proper way to delete some functions in the /login page. I just want to left this page for login to dashboard only (admin login only).

I want to delete functions such as remembering the password, forgetting the password and creating a new account. Sorry for the stupid question, but I guess there's no need to use them. I can just delete these files like register.blade.php and so on, but i want to know exactly how to do it properly.

Remove Debugbar

sir can u teach me on how to remove the debugbar on the frontend but stays on the backend

Favicon Error and npm run dev not working

Hello, thanks for the programming.

I don't understan why my favicon no working, How to show it?

I try on views in default.blade.php:

but don't working. I have too an errors in my commands 'npm run dev':

Doesn't work with Vue

Hey,

something is messing up with Vue. If I initialize #app container, multi level menu, sidebar collapse, tooltips, popovers doesn't work anymore. And console doesn't show any error.

Any help?

How can I enable jquery/javascript libraries?

Hello, I have just installed your code. Your installation instructions are very clear but I'm new to the whole laravel mix thing and cannot figure out how to enable the various javascript libraries. I successfully installed the node_modules using yarn, enable npm watch and then I added the following code to the end of resources\views\admin\index.blade.php to test jquery using sweetalert2:
@section('js') <script> $(function(){ Swal.fire('hello world'); }); </script> @endsection
I expected a simple alert popup when reloading, but nothing happens. In resources\js\bootstrap.js there is already a line at the bottom with import './sweetalert2'; so I assume that the library is being loaded. What am I missing?

Password mutator

With "setUserPassword" mutator, when using laravel auth facade, it will fail (not sure it fails out of the box) when editing password, since "password" field is hidden, it hashes a null value.

Please test it, just in case I' ve fixed it with this guard:

    public function setPasswordAttribute($password)
    {
        if(Hash::needsRehash($password))
            $password = Hash::make($password);

        $this->attributes['password'] = $password;
    }

VueJS compatibility

Thanks for this piece of code. I plan to VueJS in my code. Please may I know why you uncommented app.js in resources/js folder.

cassandra database connection

I'm trying to connect laradminator project with cassandra database and dont know how to approach , can you please help me out.
thanks

Illuminate\Database\QueryException

Help!

php artisan migrate:fresh --seed

Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE')

at /home/work/laradminator/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error
661| // message to include the bindings with SQL, which will make this exception a
662| // lot more helpful to the developer instead of just the database's errors.
663| catch (Exception $e) {

664| throw new QueryException(
665| $query, $this->prepareBindings($bindings), $e
666| );
667| }
668|

Exception trace:

1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)")
/home/work/laradminator/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68

2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=homestead", "homestead", "secret", [])
/home/work/laradminator/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68

Please use the argument -v to see more details.

Tutorial & Laravel 5

Hello,

Thank you for a great contribution. However, I am starting long-term project so I am forced to use laravel 5.5.

I would welcome if you could create such a version or at least if you can post a tutorial how to implement adminator theme to laravel.

Datepicker in form

How can i use datepicker in a input field. Please anyone post a snip. Thanks

Static sidebar

How To Static sidebard or fixed sidebar in this project.

trouble while installing laradminator

Salam bro, i'm facing an issue while installing laradminator on my pc, as you described very well in your installing guide, here's the message error:

$ sudo chmod 777 storage/ -R
bash: sudo: command not found

Regards.

Choosing selected value in select2 <select>

When building a selector with:

{!! Form::mySelect('contact_id', 'Contact', ([0 => 'Pick one...', $contacts]), 0, ['class' => 'form-control select2']) !!}
It does not point to the proper selector value (0, in this case, "Nothing").

I'm prepending a "0" value to my options with that array declaration, so the user is able to "deselect" a contact when picking it (maybe there is another, cleaner way :D)

If I use "form-control select" instead of the "select2" one, the option 0 I've chosen in mySelect shows up, but when using select2, the select option points to the first element I've passed to the view.

Changing method call to:
{!! Form::mySelect('contact_id', 'Contact', ([0 => 'Nothing', $contacts]), [0 => 'Nothing'], ['class' => 'form-control select2']) !!}
made it work as expected ... But kinda weird at displaying (that "1" should not be there?)
imagen

Guess I am not using "children" properly :(

Cant use laratrust Package

Hello, i have been trying to see if i could use the laratrust package, buts its not working, cant even login with the default logins that laratrust provides, can you help?

Use modal in js code

I can't use moda('show) and modal('hide')' in js code.Please response me.
If can,let me know how
Thank you.

Datatable use server side pagination?

What's the best way to integrate Datatable server side.
The problem is that i'm not able to write jquery on the blade page, and i'm not able to add the jquery in the resources/js since the ajax points to a route.

tried using yarjabox

Any help is appreciated.

How to add new role?

Besides adding the role name in config/variables.php and adding route group, what else should I know?

Modal and select2

If i use modal in my form select2 css and javascript not working properly.

Reset Password page

Form style is broken:
Not a big issue but looks bad.
on auth.passwords.email view just requires
form content to wrap with
div class="row"
Well looks better with it.

How to implement laradminator for existing project.

I have write several back end codes for my laravel project. Now I want to implement laradminator. I copy the package.json and webpack.mix.js to my project. Then I run npm i then npm run production

I got this error:

`fs.js:948
binding.stat(pathModule._makeLong(path));
^

Error: ENOENT: no such file or directory, stat '/home/vagrant/code/admin/resources/assets/static/images'
at Object.fs.statSync (fs.js:948:11)
at Object.statSync (/home/vagrant/code/admin/node_modules/graceful-fs/polyfills.js:297:22)
`

Active dot at sidebar looks not working

As in #22, the blue dot is not showing up

This line looks guilty:
<a class="sidebar-link {{ Str::startsWith($route, ADMIN . '.dash') ? 'active' : '' }}"

It's always evaluating to ' ', although if we "dd" it here:
@php
$r = \Route::current()->getAction();
$route = (isset($r['as'])) ? $r['as'] : '';
@endphp

It yelds "active" correctly

Laravel 6.0.3 Class Form not found

for some reason commenting out

require_once base_path('resources/macros/form.php');
Schema::defaultStringLength(191);

on Learavel 6.0.3 bring up the themed Authentication pages but doesn't redirect the user to the dashboard and same goes for the .users route too.

Keeping them however doesn;t work

how does resources/js folders works?

Hi! I'm new with laravel, I don't understand what is happening with the folder resources/js.

I understand that you are working with nodejs, but I don't understand how to implement google maps or sweet alert, and all others libraries.

Can you give a brief example. or a tutorial to understand how to work nodejs with laravel?

Element creation

I know this is kinda demo, but should item creation work out of the box ?

I'm not sure if I broke something or there is no element creation form, since the only "form" blade needs to receive an -item-, so looks not suitable to create new ones.

Login impossible because of multiple password crypt

I noticed that after a user registers he gets logged in, but when he tries to login again, he gets an error even if data is correct.
This is because in RegisterController.php at line 68 you use bcrypt on the password, but it is already used by Laravel default authentication method. This causes the password to be crypted two times.

I'm opening an issue because opening a PR just for the one line of code is exaggerated.

So the only thing to do is leaving the line as
'password' => $data['password'],
without the hashing function.

RTL don't support tablet screen

Steps to reproduce:

  1. Set direction RTL
  2. set screen size smaller than 768x600

What is expected?
Rewrite all media query for RTL

I temporarily use the following code in rtl.scss ‍‍‍ :

@import "spec/tools/mixins";
@import "spec/settings/breakpoints";
@import "spec/settings/materialColors";
@import "spec/settings/baseColors";
.page-container {
    min-height: 100vh;
    padding-right: $offscreen-size;
    transition: all 0.2s ease;
    @include between($breakpoint-md, $breakpoint-xl) {
        padding-right: $collapsed-size;
    }
    @include to($breakpoint-md) {
        padding-right: 0;
    }
}
.is-collapsed {
    .page-container {
        padding-right: $collapsed-size;
        @include to($breakpoint-md) {
            padding-right: 0;
        }
        @include between($breakpoint-md, $breakpoint-xl) {
            padding-right: $offscreen-size;
        }
    }

    .full-container {
        right: $collapsed-size;
        @include to($breakpoint-md) {
            right: 0;
        }
        @include between($breakpoint-md, $breakpoint-xl) {
            right: $offscreen-size;
            padding-right: 0;
        }
    }
}
.is-collapsed {
    .sidebar {
        @include to($breakpoint-md) {
            right: 0;
            left: unset;
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.