mercredi 1 janvier 2020

Laravel 5.8 - Using Multiple Models in Service or Controller Dynamically

I have a structure wherein the Models folder holds all the model files for the project feature-wise, Example - all the user-related model files will be inside the Models/User folder.

I want to use App\Models\User* Kind of thing which should make things simpler and also while constructing the object of the class all the models should be available to $this->



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire