Example #1
0
 public function delete($id)
 {
     if (is_object($id)) {
         $id = $id->id;
     }
     $project = Project::withTrashed()->whereId($id)->first();
     if ($project) {
         $project->delete();
     }
     return $this->listener->statusResponse(['project' => $project]);
 }