laravelrus/sleepingowl

Administrative interface builder for Laravel.

Downloads

190635

Stars

791

Version

9.5.1

bg

Laravel Admin Panel

Build Status StyleCI Laravel Support PHP Support

Official Site Demo Site Telegram Chat Latest Stable Version Total Downloads License

SleepingOwl Admin is an administrative interface builder for Laravel.

Documentation

Installation

  1. Require this package in your composer.json and run composer update:

    • Bootstrap3 build

    composer require laravelrus/sleepingowl:5.8.*

    • Bootstrap4 build (latest)

    composer require laravelrus/sleepingowl

  2. 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
    
  3. 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"
    ]
    

Update

  1. Change the version you need in composer.json

Example:

"laravelrus/sleepingowl": "dev-development-bs4"
  1. Run this command in the terminal:
composer update laravelrus/sleepingowl
  1. Run command in the terminal for update assets:
php artisan sleepingowl:update

Authentication

  1. 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']
     ...
    
  2. Setting up middleware

    By default auth middleware use default guard, selected in config/auth.php

    'defaults' => [
      'guard' => 'web', <- default
      ...
    ],
    
  3. If you are using some package for ACL like (Laratrust, Zizaco Entrust, etc...)

    'middleware' => ['web', 'role:admin'],
    

    or

    'middleware' => ['web', 'permission:admin'],
    

Copyright and License

Admin was written by Sleeping Owl for the Laravel framework and is released under the MIT License. See the LICENSE file for details.

LaravelRUS

Author

LaravelRUS