PHP code example of hamed-sadeghinejad / admin-panel

1. Go to this page and download the library: Download hamed-sadeghinejad/admin-panel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hamed-sadeghinejad / admin-panel example snippets


HamedSadeghi\AdminPanel\AdminPanelServiceProvider::class

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

php artisan make:auth
php artisan migrate

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