1
![Stack Overflow](http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
You must first return only the related data from the repository:
public function getClientsProjects($clientId)
{
$client = Client::find($clientId);
...
return $response;
}
Then change your route to point to your controller:
Route::get('task/clientsprojects', 'TaskController@cli...