hamed-sadeghinejad/admin-panel

There is no license information available for the latest version (0.1) of this package.

This package create admin panel for your projects

0.1 2018-10-07 07:46 UTC

This package is auto-updated.

Last update: 2024-04-20 21:56:37 UTC


README

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']);
        });