F
Filament4mo ago
ericmp

Sometimes In Prod I Go To Login And Get Route Login Not Found

I have an admin panel provider, default filament stuff. Sometimes i get:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined.
what to do?
3 Replies
Zen Nitiruj
Zen Nitiruj4mo ago
I made it this way. But I also don't like it. Still look for better way.
Route::middleware('guest')->group(function () {
Route::redirect('/', config('app.url') . '/admin/login')->name('login');
});`
Route::middleware('guest')->group(function () {
Route::redirect('/', config('app.url') . '/admin/login')->name('login');
});`
ericmp
ericmpOP4mo ago
i have it this way:
Route::get('/', function () {
return to_route('filament.admin.auth.login');
});
Route::get('/', function () {
return to_route('filament.admin.auth.login');
});
i'll try to set it up like you, lets see. thanks
Vp
Vp4mo ago
just put ->name('login') in this route?
Want results from more Discord servers?
Add your server