This question already has an answer here:
If I have 3 models:
App/Models/User
App/Models/Customer
App/Models/Product
How i can get all this models from code? Something like:
$models = Model::all();
foreach($models as $model){
echo $model . <br/>;
}
/*Output
App/Models/User
App/Models/Customer
App/Models/Product
*/
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire