I have a model called user with relation "travel" model and travel model with relation "destination"
how can I get user in eloquent with travel and relation.
I know that I can get travel like this :
$row = $this->model
->find($reqId)
->with('travel')
->first();
I want get destination of travels .
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2imA0g9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire