This is an admin panel for laravel packages.
- Copy this line to
config/app.php
inproviders
variable:
HamedSadeghi\AdminPanel\AdminPanelServiceProvider::class
- Activate simple authenticate package of laravel
php artisan make:auth
php artisan migrate
-
Change
$redirectTo
attribute ofLoginController
,RegisterController
,ResetPasswordController
andVerificationController
to/admin
-
Publish public assets
php artisan vendor:publish --tag=AdminPanel-assets
AdminPanel using lavary/laravel-menu for menu management.
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']);
});