# controller
$taskModel = new TaskModel();
$builder = $taskModel->view(); // show model for view()
return DataTable::of($builder->builder())->toJson(true);
# model
public function view()
{
$this->builder()
->join('user_details', '(user_details.user_id = requests.user_id AND user_details.detail_key = "name")', 'left')
->join('clients', 'clients.client_id = requests.client_id', 'left');
return $this;
}
Screenshots
Version (please complete the following information):
Describe the bug Not work with model join
Your code
Screenshots![image](https://user-images.githubusercontent.com/2387514/209754993-db822447-00ca-41b1-8e0f-a6e54c09bfbe.png)
Version (please complete the following information):