ExportAction: Route [login] not defined error

Hello everyone, I use bulk ExportAction in resource. Everything works normally, from notifications to downloading the file. The file is created, the data comes in the structure I want. But when I try to download the file, I get the error that appears in the attachment. I am using a different model as the user model. I have also completed the steps for the manipulation in the migration file. Has anyone experienced this issue before? If so, what are your solutions? Thank you in advance.
No description
7 Replies
Expecto Patronum
did u try run php artisan optimize:clear in your terminal ?
Azad Furkan ŞAKAR
Azad Furkan ŞAKAROP6mo ago
Yes, i tried it but still doesn't work
Azad Furkan ŞAKAR
Azad Furkan ŞAKAROP6mo ago
Error throwed because of there. I have two auth guard. Backend guard name: admin, frontend guard name: web. I think that's why it's throw unauthenticate error.
No description
Ahmed Essam
Ahmed Essam6mo ago
Did you find a solution for this please ?
Azad Furkan ŞAKAR
Azad Furkan ŞAKAROP6mo ago
I just check if request come from filament, override

config([
'auth.defaults.guard' => 'admin',
]);

config([
'auth.defaults.guard' => 'admin',
]);
Mamoun Abu Salah
@Azad Furkan ŞAKAR please help! I have two guard and I use admin guard for Filament admin, and export action success but when click to open download like from notification, redirect me to Route [login] not defined. how I can solve it?
Azad Furkan ŞAKAR
Azad Furkan ŞAKAROP2mo ago
add this in your AppServiceProvider register method.

Did you find this page helpful?