Answer the question
In order to leave comments, you need to log in
Nested laravel with?
The essence of the question is as follows: there are 3 tables boards, tasks, task_settings sequentially linked by key in the Boards model function
public function task()
{
return $this->hasMany('App\Task');
}
$board = Board::with('task')->where('user_id', 2)->whereHas('task')->get();
Board
Task
Board-
Task-
Task_settings.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question