© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
11 replies
bhattji

Target [Illuminate\Database\Eloquent\Model] is not instantiable

I have the UserResource, which I guess, working all fine sometime before, however I find now I am not abe to create a new User (Target [Illuminate\Database\Eloquent\Model] is not instantiable.)

The EditUser works fine though

How to solve this?

Please help asap
Solution
I think the issue is this part:
getLocationIdGroup(fn (Model $user): bool => $user->id == auth()->user()->id),
getLocationIdGroup(fn (Model $user): bool => $user->id == auth()->user()->id),


What does that method to? Where/when is the callback evaluated? You are probably not passing the user model
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

Target [Illuminate\Database\Eloquent\Model] is not instantiable.
FilamentFFilament / ❓┊help
3y ago
Target [Illuminate\Database\Eloquent\Model] is not instantiable.
FilamentFFilament / ❓┊help
3y ago
Target [Illuminate\Database\Eloquent\Model] is not instantiable.
FilamentFFilament / ❓┊help
3y ago
Target [Illuminate\Database\Eloquent\Model] is not instantiable.
FilamentFFilament / ❓┊help
3y ago