📅  最后修改于: 2023-12-03 15:17:13.124000             🧑  作者: Mango
Laravel UI is a Composer package for providing the UI scaffolding for Laravel applications. It has several predefined front-end presets like Bootstrap, Vue, React, and Tailwind. This package helps developers to quickly set up and customize the front-end of their Laravel application.
You can install Laravel UI via Composer:
composer require laravel/ui
After installation, run the UI command to generate the front-end scaffolding:
php artisan ui [options]
For example, to generate Bootstrap preset:
php artisan ui bootstrap
This command will generate the necessary files for Bootstrap in the resources
directory of your Laravel application.
Laravel UI allows developers to customize the front-end presets as per their needs. For example, to install specific versions of Bootstrap and jQuery:
php artisan ui bootstrap --auth --option='bootstrap=4 jquery=3'
This will install Bootstrap v4 and jQuery v3 along with the authentication scaffolding.
Laravel UI is a handy package for quickly setting up and customizing the front-end of Laravel applications. It provides several predefined presets and allows customization as per developers' needs.