Tutorial Laravel Auth con Bootstrap

WBOY
Release: 2024-07-18 20:38:52
Original
568 people have browsed it

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 the 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 that it overwrites 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!

source:dev.to
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!