How to download failed rows?
Hi, I have an import action
when I click on the link to download the failed rows, I get redirected to
http://localhost:8000/filament/imports/2/failed-rows/download
and I am met with a Route [login] not defined.
error2 Replies
worth noting that I am using an Admin model that has it's own auth guard and not the traditional User model, maybe filament is hard coded to protect the failed-rows route with the user guard/gate
possibly relevant code:
https://github.com/filamentphp/filament/blob/4cb232fba53eaa66dcfc1d2a6752e4d67c5536cf/packages/actions/src/Imports/Http/Controllers/DownloadImportFailureCsv.php#L19-L23
https://github.com/filamentphp/filament/blob/4cb232fba53eaa66dcfc1d2a6752e4d67c5536cf/packages/actions/routes/web.php#L9
maybe this can help with your case?
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/import#using-a-custom-user-model