/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { if ($this->checkProjectPermissions($id) == false) { return ['error' => 'Access Forbidden']; } $this->service->destroy($id); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { return $this->service->destroy($id); }