Home  >  Article  >  Backend Development  >  Tutorial Laravel Auth con Bootstrap

Tutorial Laravel Auth con Bootstrap

WBOY
WBOYOriginal
2024-07-18 20:38:52705browse

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 the 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 gladly help you.

Thanks for reading, happy coding!

The above is the detailed content of Tutorial Laravel Auth con Bootstrap. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Intro to MiddlewareNext article:Intro to Middleware