laravel / fortify

Backend controllers and scaffolding for Laravel authentication.
https://laravel.com/docs/fortify
MIT License
1.62k stars 294 forks source link

Fortify Routes #96

Closed undjike closed 4 years ago

undjike commented 4 years ago

I'm facing a problem with Fortify Routes knowing that they are not exposed on Auth::routes() like Laravel UI. I want to populate Fortify Routes in a route group to enable route globalization. For instance...

Route::localized(function () {
     // Fortify Routes here
});
Okipa commented 4 years ago

@undjike it seems that you'll currently have to call Fortify::ignoreRoutes(); in the register method of the FortifyServiceProvider.

Then, copy and paste the routes declared in the /vendor/laravel/fortify/routes/routes.php file into your route group (I suppose that you'll also have to execute a translation method on the URI param of the route in order to have it translated).

This is how I managed to do so after exploring this package.

driesvints commented 4 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.