© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Jr.Pikong

Export with custom guard

Hi All, have an app with V3 filament,
for auth I use custom guard with the
agents
agents
table sofar auth works fine, but I have a problem implementing export. This problem is because the export table has a relationship with the
users
users
table with
user_id
user_id
whereas I use the
agents
agents
table.
so if I run export I get errors
exports
exports
,
CONSTRAINT exports_user_id_foreign FOREIGN KEY ('user_id') REFERENCES 'users' ('id') ON DELETE CASCADE 
CONSTRAINT exports_user_id_foreign FOREIGN KEY ('user_id') REFERENCES 'users' ('id') ON DELETE CASCADE 
and other problems I use many panels and of course, I use guard with
user
user
and implement export, so how to use export in multiple guards?
Solution
Have you try this? https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#using-a-custom-user-model
Export action - Actions - Filament
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unable to download export with polymorphic user and custom guard
FilamentFFilament / ❓┊help
2y ago
Export action using multiple guard
FilamentFFilament / ❓┊help
8mo ago
Testing custom auth guard
FilamentFFilament / ❓┊help
2y ago
Can't login with the custom guard
FilamentFFilament / ❓┊help
3y ago