Exemplo n.º 1
0
 public function action_destroy_collaborator($project_id, $officer_id)
 {
     $collaborator = ProjectCollaborator::where_project_id($project_id)->where_officer_id($officer_id)->where_owner(false)->first();
     if ($collaborator) {
         $collaborator->delete();
     }
     return Response::json(array("status" => "success"));
 }