Hello developers! In this guide, We'll see how to create a login and registration page in laravel 11 using the laravel auth command. Also, we'll create a bootstrap login and registration form using the laravel UI command in laravel 11.
You can create a basic starting point using Bootstrap, React, and/or Vue which will be helpful for many applications. Laravel UI offers authentication features, such as login, registration, password reset, email verification, and password confirmation.
In this step, we'll install laravel 11 using the following composer command.
composer create-project laravel/laravel laravel-11-example
Now, install the Laravel UI package by running the following command:
composer require laravel/ui
Next, to install the Laravel UI package command for creating authentication scaffolding using Bootstrap 5, run either of the following commands
php artisan ui bootstrap
# OR
php artisan ui bootstrap --auth
Then, install npm by running the following command:
npm install
This will generate CSS and JS min files.
Next, run the migration command:
php artisan migrate
All the required steps have been completed. Now, to run the Laravel app, simply type the following command and hit enter:
php artisan serve
Output:
Home Page
Login Page
You might also like:
In this article, we will see how to create a custom command in laravel 9. Here we will learn about how to make cust...
Feb-14-2023
React is a really cool tool that helps programmers make awesome user interfaces using JavaScript. When it com...
Jul-26-2023
In this article, we will see how to create a zip file using zipArchive in laravel. Sometimes we have requirements to hav...
Sep-16-2020
In this article, we will see Queen Elizabeth II portrait using CSS. Elizabeth II was Queen of the United Kingd...
Sep-11-2022