Trouble with Export/Import in Laravel Filament Admin Panel: 'Login Route Not Found' Error
Hi, I'm currently using the Laravel Filament admin panel for my application. I've been working on getting the export/import feature up and running smoothly. However, whenever I attempt to export or import a CSV, it seems to generate in the notifications. But then, when I try to download the file, it keeps throwing a 'login route not found' error.
SS: https://img.enacton.com/ShareX/2024/04/w4FMvKPUQJ.png
I've configured separate guards for authentication, one for admin and one for user panels. Additionally, I've ensured that the export/import policy is set to return true in the view function.
Furthermore, I've made sure to include
Export::polymorphicUserRelationship();
in the app service provider, and I've made all the necessary database changes.
Despite these efforts, I'm still stuck with the 'login route not found' issue when accessing export/import. Any suggestions on resolving this within the Laravel Filament admin panel?2 Replies
@ItsAllAboutSomething
the filament login page is the only web way to log in the app?
if true, maybe just change that
route('login')
to the filament login route - something like route('filament...login')
(check php artisan route:list
to see how it is)
else, locate the login route ni web.php and add the name to the route (->name('login')
)You should Change the Authenticate::class
in your kernal with
Filament\Http\Middleware\Authenticate