"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Tutorial Laravel Auth con Bootstrap

Tutorial Laravel Auth con Bootstrap

Published on 2024-11-07
Browse:595

This is a practical tutorial. We will create a project with Laravel in version 11 and integrate the base auth verification.

Requirements

  • Basic knowledge of Laravel and PHP
  • Composer installed on your computer
  • Node.js and npm installed on the computer.

Step 1: Create a new Laravel project

Create a Laravel project using composer

composer create-project --prefer-dist laravel/laravel laravel-auth-bootstrap

Step 2: Install an empty project

Select No starter kit

cd laravel-auth-bootstrap
composer require laravel/ui
php artisan ui bootstrap --auth

confirm to overwrite the views and that's it.

Step 3: Install NPM dependencies

Create the register and login views

npm install && npm run dev

Step 4: Run migrations

Create a database and add the name in the .env file

php artisan migrate

Step 5: Check your application

Now you can review the views with the following command

php artisan serve

You must have these screens.

Image description

Image description

Image description

Any questions or errors when doing this tutorial, do not hesitate to write. I will be happy to help you.

Thanks for reading, happy coding!

Release Statement This article is reproduced at: https://dev.to/syngrowly/tutorial-laravel-11-auth-con-bootstrap-56n1?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3