Override Laravel Jetstream default URLs

laravel-logo

Laravel 8 coms with a first class package called Laravel Jetstream, which provides a perfect starting point for your next Laravel application and includes login, registration, email verification, two-factor authentication, session management, and API.

It is no longer possible to change the URL paths for login, logout and register directly in you web.php as I was before using the Laravel/UI package.

To override the URL paths for login, logout and register you will need to make the following adjustments:

fortifyserviceprovider.php

//add this code to the register method
Fortify::ignoreRoutes();  

After adding the ignoreroutes you could copy and use the routes defined in /vendor/laravel/fortify/routes/routes.php as a starting point to your web.php file

Skolene åpner for alle elever fra 11. mai
 

Kommentarer

Ingen kommentarer
Eksisterende bruker? Log inn her
Besøkende
fredag 25. september 2020
For å opprette bruker, vennligst fyll inn brukernavn, passord og navn.

By accepting you will be accessing a service provided by a third-party external to https://www.altonline.no/