Пример #1
0
 /**
  * Handle an incoming request.
  *
  * @param \Illuminate\Http\Request $request
  * @param \Closure                 $next
  *
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     if ($this->validator->validateRequest($request)) {
         $request = HttpRequest::createFromExisting($request);
         return $this->sendRequestThroughRouter($request);
     }
     return $next($request);
 }