© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
13 replies
Mark Chaney

Override Model for Create/EditAction?

Shouldnt this work?
->form(fn() => PropertyManager::getForm())
->model(PropertyManager::class)
->form(fn() => PropertyManager::getForm())
->model(PropertyManager::class)
This is for individual HeaderActions in a Table that is based of the User model, but I want to create an entry in a different model (well my action() will create some aspects in User as well). Anyway, when I launch the form, it says
Call to undefined method App\Models\User::lead_source()
Call to undefined method App\Models\User::lead_source()
and thats because its trying to load it in the User class and not the PropertyManager class that i specified with
->model()
->model()
. Are my assumptions incorrect?
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

Override Import Model
FilamentFFilament / ❓┊help
3y ago
Assign record for EditAction
FilamentFFilament / ❓┊help
7mo ago
EditAction hooks
FilamentFFilament / ❓┊help
3y ago
Create Model for already existing table
FilamentFFilament / ❓┊help
2y ago