Note: this is development version. If you are looking for stable version check out master branch.
SleepingOwl Admin is administrative interface builder for Laravel.
- jquery
- bootstrap
- bootbox
- datetimepicker
- fontawesome
- moment
- nestable
- noty
- ckeditor
- Sortable
- select2
- flow.js
- ekko-lightbox
- metisMenu
- datatables
- startbootstrap-sb-admin-2
-
Require this package in your composer.json and run composer update:
"laravelrus/sleepingowl": "4.*@dev"
-
After composer update, insert service provider
SleepingOwl\Admin\Providers\SleepingOwlServiceProvider::class,
beforeApplication Service Providers...
to theconfig/app.php
Example
... /* * SleepingOwl Service Provider */ SleepingOwl\Admin\Providers\SleepingOwlServiceProvider::class, /* * Application Service Providers... */ App\Providers\AppServiceProvider::class, ...
-
Run this command in terminal (if you want to know what exactly this command makes, see install command documentation):
$ php artisan sleepingowl:install
Class has been moved to composer package kodicomponents\support
for using in other projects and methods have been changed for more compatibility.
setAttribute
->setHtmlAttribute
setAttributes
->setHtmlAttributes
getAttribute
->getHtmlAttribute
getAttributes
->getHtmlAttributes
hasAttribute
->hasHtmlAttribute
replaceAttribute
->replaceHtmlAttribute
removeAttribute
->removeHtmlAttribute
clearAttributes
->clearHtmlAttributes
hasClass
->hasClassProperty
Navigation classes have been move to composer package kodicomponents\navigation
for using in other projects
By default admin module use Laravel authentication.
If you want to use auth, you can run artisan command php artisan make:auth
(https://laravel.com/docs/5.2/authentication) and append middleware auth
to config/sleeping_owl.php
If you want to migrate from old version< you can use old auth.
Steps:
-
Add new user provider in
config/auth.php
'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\User::class, ], 'administrators' => [ 'driver' => 'eloquent', 'model' => SleepingOwl\Admin\Auth\Administrator::class, ], ],
-
Add new guards or change existing in
config/auth.php
'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'administrators', // change existing provider ], // or add new 'admin' => [ 'driver' => 'session', 'provider' => 'administrators', ], ],
-
Setting up middleware
By default
auth
middleware use default guard, selected inconfig/auth.php
'defaults' => [ 'guard' => 'web', <- default ... ],
You can change default guard to
admin
or change middleware inconfig/sleeping_owl.php
to'middleware' => ['web', 'auth:admin'],
You can download demo project https://github.com/SleepingOwlAdmin/demo
Documentation can be found at sleeping owl documentation.
Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.