/**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     if ($this->service->isOwner($request->projects, Authorizer::getResourceOwnerId())) {
         return $next($request);
     } else {
         return ['error' => 'access_denied', 'error_description' => 'Only the owner can delete this project.'];
     }
 }
 public function destroy($project_id, $id)
 {
     return $this->service->rep()->find($project_id)->members()->detach($id);
 }
 public function destroy($id)
 {
     return $this->service->delete($id);
 }