© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•9mo ago•
24 replies
bernhard

Export action - Login route not found

I am trying the prebuild Export action for the first time. Everything works, except the download of the export. I get the url path
/filament/exports/2/download?format=csv
/filament/exports/2/download?format=csv
for the CSV export, but there I get the error
Route [login] not defined.
Route [login] not defined.
.

I guess (and thats just a guess) its because I am using not the "web" but an "admin" Auth-Guard. But I have nowhere else problems and of course I have set
->authGuard("admin")
->authGuard("admin")
in the Panel service provider.

Any ideas?
Solution
@bernhard I fixed this by overriding the export download route and using a service provider to bind tenant user model to authenticatable class.
Route::get('/filament/exports/{export}/download', DownloadExport::class)
    ->name('filament.exports.download')
    ->middleware([
        'web',
        InitializeTenancyByDomainOrSubdomain::class,
        'or your custom auth middleware'
    ]);
Route::get('/filament/exports/{export}/download', DownloadExport::class)
    ->name('filament.exports.download')
    ->middleware([
        'web',
        InitializeTenancyByDomainOrSubdomain::class,
        'or your custom auth middleware'
    ]);

 app()->bind(Authenticatable::class, function () {
            return app(TenantUser::class);
        });
 app()->bind(Authenticatable::class, function () {
            return app(TenantUser::class);
        });
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Route not found
FilamentFFilament / ❓┊help
2y ago
Trouble with Export/Import in Laravel Filament Admin Panel: 'Login Route Not Found' Error
FilamentFFilament / ❓┊help
2y ago
Export action
FilamentFFilament / ❓┊help
10mo ago
Export Action
FilamentFFilament / ❓┊help
17mo ago