/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     try {
         return $this->repository->with('project')->find($id);
     } catch (ModelNotFoundException $e) {
         return ['error' => true, 'message' => 'ProjectTask not Found'];
     }
 }
 public function read($id)
 {
     try {
         return response()->json($this->repository->with(['project'])->find($id));
     } catch (ModelNotFoundException $ex) {
         return $this->notFound($id);
     }
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     return $this->repository->with(['project'])->find($id);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return $this->repository->with('project')->all();
 }
 public function find($id)
 {
     return $this->repository->with(['owner', 'client'])->find($id);
 }