public function getAssignedClient($id) { $tasks = Tasks::findOrFail($id); $tasks->clientAssignee; return $tasks; }