Package Data | |
---|---|
Maintainer Username: | butschster |
Maintainer Contact: | owl.sleeping@yahoo.com (Sleeping Owl) |
Package Create Date: | 2016-02-20 |
Package Last Update: | 2024-11-08 |
Home Page: | http://sleepingowladmin.ru/ |
Language: | JavaScript |
License: | MIT |
Last Refreshed: | 2024-12-22 15:02:57 |
Package Statistics | |
---|---|
Total Downloads: | 197,948 |
Monthly Downloads: | 968 |
Daily Downloads: | 18 |
Total Stars: | 808 |
Total Watchers: | 45 |
Total Forks: | 217 |
Total Open Issues: | 10 |
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:5.6.*
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"
]
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"
]
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/authentication)
and append middleware auth
to config/sleeping_owl.php
...
'middleware' => ['web', 'auth']
...
Setting up middleware
By default auth
middleware use default guard, selected in config/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'],
Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.