Laravel UI : Authentication and UI Setup
To install Laravel UI on Windows, follow these steps:
Step 1: Navigate to Your Laravel Project Directory
Once the project is created, navigate into your project directory using the following command:
cd Myblog
Step 2: Install Laravel UI Package
To install Laravel UI, run the following command:
composer require laravel/ui
Step 3: Generate UI Authentication Scaffolding
After installing Laravel UI, you can generate the authentication scaffolding using one of the following commands, depending on your preferred frontend framework. In this case using bootstrap.
php artisan ui bootstrap --auth
Step 4: Install NPM Dependencies and Compile Assets
After generating the authentication scaffolding, you need to install NPM dependencies and compile assets.
Run the following commands:
npm install && npm run dev
Step 5: Run the Development Server
Finally, start the Laravel development server by running the following command:
php artisan serve
Access your Laravel project in your web browser at http://localhost:8000
Login Page
Register Page