zaster
170
2
Laravel

Referencing all Models at once in a Controller?

Posted 1 month ago by zaster
use App\Http\Models\CarModel;
..
..
..

The relevant models are used in a controller file as mentioned above

Is it possible to, like have a template kind of a thing to include all those models in a project and then import only that in a controller (Assuming all models have unique names)?

Is this practical ?

Are there any performance issues ?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.