Note: This is the development version. If you are looking for the stable version check out master branch.
SleepingOwl Admin is an administrative interface builder for Laravel.
-
Require this package in your composer.json and run composer update:
composer require laravelrus/sleepingowl:4.*@dev
-
After composer update, insert service provider in config/app.php
... /* * SleepingOwl Service Provider */ SleepingOwl\Admin\Providers\SleepingOwlServiceProvider::class, /* * Application Service Providers... */ App\Providers\AppServiceProvider::class, ...
-
Run this command in the terminal (if you want to know more about what exactly this command does, see install command documentation):
$ php artisan sleepingowl:install
-
After you have to update in
composer.json
post-update section:Example:
"post-update-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postUpdate", "php artisan sleepingowl:update", "php artisan optimize", ]
NOTE: So if you use a laravel-ide-helper package place
sleepingowl:update
after it commands:"post-update-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postUpdate", "php artisan ide-helper:generate", "php artisan ide-helper:meta", "php artisan sleepingowl:update", "php artisan optimize", ]
-
By default, admin module uses Laravel authentication.
If you want to use auth, you can run artisan command
php artisan make:auth
(https://laravel.com/docs/5.3/authentication) and append middlewareauth
toconfig/sleeping_owl.php
... 'middleware' => ['web', 'auth'] ...
-
Setting up middleware
By default
auth
middleware use default guard, selected inconfig/auth.php
'defaults' => [ 'guard' => 'web', <- default ... ],
-
If you are using some package for ACL like (Laratrust, Zizaco Entrust, etc...)
'middleware' => ['web', 'role:admin'],
or
'middleware' => ['web', 'permission:admin'],
-
"devDependencies": { "admin-lte": "^2.3.5", "bootstrap": "^3.3.7", "bootstrap-daterangepicker": "^2.1.24", "datatables.net": "^1.10.12", "dropzone": "4.3.0", "eonasdan-bootstrap-datetimepicker": "^4.15.35", "font-awesome": "^4.6.3", "gulp": "^3.9.1", "i18next": "^3.4.1", "imports-loader": "^0.6.5", "jquery": "^2.1.1", "laravel-elixir": "^6.0.0-11", "laravel-elixir-vue-2": "^0.3.0", "laravel-elixir-webpack-official": "^1.0.2", "lodash": "^4.17.4", "magnific-popup": "^1.1.0", "metismenu": "^2.5.2", "moment": "^2.14.1", "nestable": "^0.2.0", "noty": "^2.3.8", "select2": "^4.0.3", "sortablejs": "1.4.2", "sweetalert2": "^4.1.0", "vue": "^2.3.3", "vue-multiselect": "^2.0.2", "vue-resource": "^1.3.3", "x-editable": "^1.5.1" }
Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.