Skip to content

hsadeghinejad/AdminPanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version Total Downloads Latest Unstable Version License

AdminPanel

This is an admin panel for laravel packages.

Installation guide

  1. Copy this line to config/app.php in providers variable:
HamedSadeghi\AdminPanel\AdminPanelServiceProvider::class
  1. Activate simple authenticate package of laravel
php artisan make:auth
php artisan migrate
  1. Change $redirectTo attribute of LoginController, RegisterController, ResetPasswordController and VerificationController to /admin

  2. Publish public assets

php artisan vendor:publish --tag=AdminPanel-assets

Menu management

AdminPanel using lavary/laravel-menu for menu management.

Sidebar menu

To adding menu in sidebar of panel you must add your menu in sidebar section, ex:

        \Menu::make('sidebar', function($menu){
            $menu->add('Articles management', '#')
                ->attr('icon', 'newspaper')
                ->nickname('articles');
            $menu->articles->add('Add new', ['route' => 'add-new']);
            $menu->articles->add('List', ['route' => 'list']);
        });