예제 #1
0
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  \Closure  $next
  * @param  string  $routeString
  * @return mixed
  */
 public function handle($request, Closure $next, $routeString)
 {
     if (!$request->ajax()) {
         if ($this->view->getFinder()->getDevice() === 'default') {
             return redirect()->route($routeString);
         }
     }
     return $next($request);
 }