Example #1
0
 /**
  * Handle an incoming request, but skip OPTIONS method
  *
  * @inheritdoc
  */
 public function handle($request, Closure $next)
 {
     if ($request->isMethod('options')) {
         return $next($request);
     }
     return parent::handle($request, $next);
 }
Example #2
0
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     if ($this->shouldPassThrough($request)) {
         return parent::handle($request, $next);
     }
     if (!$request->cookie()) {
         Config::set('session.driver', 'array');
     }
     return parent::handle($request, $next);
 }
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure                 $next
  *
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     \Config::set('session.driver', 'array');
     return parent::handle($request, $next);
 }
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     return parent::handle($request, $next);
     // defer to the right stuff
 }