PHP code example of ravisaini / admin-dashboard

1. Go to this page and download the library: Download ravisaini/admin-dashboard 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/ */

    

ravisaini / admin-dashboard example snippets


$middleware->redirectGuestsTo(fn() => route('admin.login'));
$middleware->redirectUsersTo(fn() => route('admin.dashboard'));
bash
php artisan admin:install