📅  最后修改于: 2023-12-03 14:43:45.384000             🧑  作者: Mango
In this guide, we will walk you through the process of installing the Laravel UI package with Bootstrap and authentication support. Laravel UI provides a simple way to scaffold user interfaces for authentication systems in Laravel.
Before you begin, ensure that you have the following installed:
Follow the steps below to install Laravel UI with Bootstrap and authentication:
composer
command:composer create-project --prefer-dist laravel/laravel project-name
cd project-name
composer require laravel/ui
php artisan ui bootstrap --auth
npm install && npm run dev
npm run dev
php artisan serve
Once the development server is running, you will be able to access your Laravel application with Bootstrap and authentication enabled.
You can customize the Bootstrap UI by modifying the views and CSS files located in the resources/views/auth
and resources/sass
directories respectively.
To test the authentication system, navigate to the registration and login routes provided by Laravel. You can access these routes in your browser at the following URLs:
http://localhost:8000/register
http://localhost:8000/login
By following this guide, you have successfully installed Laravel UI with Bootstrap and authentication support in your Laravel project. You can now start building your application with a pre-built user interface and a fully-functional authentication system.