lundi 19 novembre 2018

How to specify selecting field using with lazy operator?

How to specify selecting field using with lazy operator?

Order::with("country", "pacient")->get();

How to specify selecting fields for model Order and depended relations like:

order.id, country.name, pacient.name,...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire