© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
Filament
•
3y ago
•
11 replies
Schilly
dynamic Use $class;
I am working on making a plugin
/ module
/ whatever you want to call it
.
.
.
I am curious to know if it is possible to dynamically call a model name based off a config value
.
EG
: config value is
:
USER_MODEL = "\App\Model\User"
USER_MODEL = "\App\Model\User"
and in the model class I want to be able to dynamically set that for the
:
Use $user_model;
Use $user_model;
part at the top
.
.
I am not sure if this is even possible or not
?
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Dynamic columns on Importer class
F
Filament / ❓┊help
2y ago
Use of unknown class: ..
F
Filament / ❓┊help
2y ago
How to use ViewComponent Class
F
Filament / ❓┊help
3y ago
Issue with Dynamic Class Application in `TextInput::make`
F
Filament / ❓┊help
17mo ago