Comments (5)
I'm facing a similar problem. I want to populate Fortify Routes in a route group to enable route globalization. For instance...
Route::localized(function () {
// Fortify Routes here
});
from fortify.
See laravel/jetstream#67, #13 and #15
from fortify.
If the user does enable a prefix, then all the current view paths / links will break.
We could leave this as the user's responsibility to publish and edit. Or we could replace the current static paths with route names:
{{--<form method="POST" action="/login">--}}
<form method="POST" action="{{route('login')}}">
@csrf
...
from fortify.
Still experimenting, but what I've done is:
app/Providers/FortifyServiceProvider.php
public function register()
{
Fortify::ignoreRoutes();
}
routes/web.php
Route::prefix('auth')->group(function () {
require base_path('vendor/laravel/fortify/routes/routes.php');
});
Or you could redefine the routes entirely instead of requiring them.
EDIT: Trying to get past the hard-coded route name in Laravel\Fortify\Http\Responses\PasswordResetResponse::toResponse()
is proving tricky.
from fortify.
@thecodemill have you continued this approach or found a different way?
from fortify.
Related Issues (20)
- Accept pull request for adding named route for two-factor auth challenge? HOT 1
- Fortify HOT 2
- The route name for registration is not declared. HOT 2
- difficulties in updating the database schema HOT 1
- Laravel 10.10 - Cast password "hashed" HOT 3
- login limiter doesn't work actually HOT 1
- When Session based Guard is not used Logout fails HOT 3
- Integrate Precognition Into Fortify Route HOT 1
- Route [logout] not defined after changing the app_env from local to production
- Without override the PasswordResetLinkController@store we cannot add reCAPTCHA HOT 1
- Name all routes for Ziggy support when enableViews is false HOT 2
- Paths override with dot in route name does not work HOT 3
- Fortify http request methods for routes requiring multipart/form-data HOT 1
- Support for laravel passport HOT 2
- Provide "Don't ask me again on this computer" feature HOT 3
- Implementation for ActivityLogs HOT 1
- Custom Rate Limiter HOT 1
- Confusion between the username/email field in the database and the username/email field in the request (form) HOT 4
- No error message on expired token HOT 4
- Can we get a way to add additional validation rules to LoginRequest?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fortify.