vendredi 27 mai 2016

Dynamic table name for Laravel model

For my application I will have multiple tables with the same base structure (auto generated tables). For example I have the table survey_1, survey_2 andsurvey_23. Is it possible to create a model like this: new Survey(2) that will generate a Model for table survey_2?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire