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,...



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2qUERuV
via IFTTT

Aucun commentaire:

Enregistrer un commentaire