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