PHP code example of dfsmania / laradminlte

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

    

dfsmania / laradminlte example snippets


Route::get('ladmin_welcome', function () {
    return view('laradminlte-welcome');
});

// config/ladmin/auth.php:
'enabled' => true,
'home_path' => '/ladmin_welcome',

// routes/web.php:
Route::middleware(['auth'])->group(function () {
    Route::get('ladmin_welcome', function () {
        return view('laradminlte-welcome');
    });

    // Add other protected routes here...
});
bash
php artisan vendor:publish --tag="ladmin-assets" --tag="ladmin-config"
bash
php artisan vendor:publish --tag="ladmin-translations"
bash
php artisan vendor:publish --tag="ladmin-migrations"
bash
php artisan migrate
bash
php artisan serve