PHP code example of alqudiry / lite-admin

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

    

alqudiry / lite-admin example snippets


'appMiddleware' => \App\Http\Middleware\AppMiddleware::class,

Route::group(['middleware' => 'appMiddleware'], function () {
    
    Route::get('/', function () {
        return view('index');
    })->name('home');

    Auth::routes();
    

    Route::group(['middleware' => 'auth'], function () {
    
        Route::group(['prefix' => 'dashboard', 'as' => 'dashboard.'], function () {

            Route::group(['prefix' => 'core', 'as' => 'core.'], function () {

                Route::get('statistics', [\App\Http\Controllers\Dashboard\Core\StatisticsController::class, 'index'])->name('statistics.index');
                
                Route::group(['prefix' => 'settings', 'as' => 'settings.'], function () {

                    Route::resource('general', \App\Http\Controllers\Dashboard\Core\Settings\GeneralController::class)->only('index', 'store');
                    Route::resource('mail', \App\Http\Controllers\Dashboard\Core\Settings\MailController::class)->only('index', 'store');
    
                });

                Route::resource('roles', \App\Http\Controllers\Dashboard\Core\RolesController::class);
                Route::resource('users', \App\Http\Controllers\Dashboard\Core\UsersController::class);
            
            });

        });

    });

});
bash
php artisan vendor:publish --provider="Alqudiry\LiteAdmin\LiteAdminServiceProvider"