Skip to content

censam/l8-fortify

Repository files navigation

Fortify Documentation

Install fortify

composer require laravel/fortify

Vendor Publish : Fortify Service Provider

Laravel\Fortify\FortifyServiceProvider

php artisan vendor:publish

Migrate

php artisan migrate

Added Service Provider in config/app.php

App\Providers\FortifyServiceProvider::class 

Enable Features in config\fortify.php

Enable Renders in here:

App\Providers\FortifyServiceProvider.php

Fortify::loginView(function () {
        return view('auth.login');
    });

If Need APP as only API or SPA

change views true to false in config\fortify.php

'views' => true,

POST => Accept as application/json 

Copy fortify routes to routes/api.php and cusstomize as you want. vendor\laravel\fortify\routes\routes.php like this:

  Route::post('/register', [RegisteredUserController::class, 'store'])
            ->middleware(['guest:'.config('fortify.guard')]);

Tricks

Compact Route List

php artisan route:list -c

Load Specific Route List

php artisan route:list --name=register

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published