Laravel's Eloquent. How to choose a model with relationships?

Hello!
How to choose the model with the relationship:
$article = Article::with('author')->where('status', true)->get();

The author also has a relation to the place of robots.
$author->job->name;
How to select in one query statu with the author and his place of work?
That is something like this:
$article = Article::with('author'->with('job'))->where('status', true)->get();
July 8th 19 at 15:42
1 answer
July 8th 19 at 15:44
Solution
$article = Article::with(['author', 'author.job'])->where('status', true)->get();

Find more questions by tags Active RecordLaravelMySQLPHP