Laravel 8 Authentication : Using Laravel Fortify (Without Jetstream)

Опубликовано: 05 Февраль 2025
на канале: Coding Skills
2,488
47

Auth in Laravel 8 using laravel fortify package Step by Step

https://github.com/laravel/fortify
1) Install a new Laravel 8 application using the laravel command: laravel new project-name

2)install Fortify using Composer:
composer require laravel/fortify

3)Publish Fortify's resources:

php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"

4)Register fortify service provider in providers of app.php inside config folder
App\Providers\FortifyServiceProvider::class,

5)Migrate tables to the Database using the following command
php artisan migrate

6) Add view paths to the boot method of FortifyServiceProvider

7) Create views in the corresponding paths mentioned above. You can change the view path based on your needs

8)Add home route for the user after the successful login/register