TABLE OF CONTENT
Run Laravel UI Command
Run the following command to create basic scaffolding from it.
composer require infyomlabs/laravel-ui-adminlte
Then Generate a full authentication UI,
php artisan ui adminlte --auth
If you want to use localization, then run the following command,
php artisan ui adminlte-localized --auth
This will generate Auth Controllers and layout files along with authentication blade view files.
It uses the same configuration as per
laravel/ui package for auth scaffold generation.
Check Published Stuff
This command generates following files,
It will publish
HomeControllerin controllers directory
It will publish views
|- resources |- views home.blade.php |- layouts |- app.blade.php |- menu.blade.php |- sidebar.blade.php |- emails |- password.blade.php |- auth |- passwords |- confirm.blade.php |- email.blade.php |- reset.blade.php |- login.blade.php |- register.blade.php |- verify.blade.php
It will add following routes which need to get it work.
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); Auth::routes();
As a next step, we need to install npm dependencies and build the assets with the following command,
npm install && npm run dev
npm install && npm run prod
Now we are all set, and you can check basic auth scaffolding.