/**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure $next
  * @return mixed
  */
 public function handle($request, \Closure $next)
 {
     if ($this->adminUserService->isSignedIn()) {
         return redirect()->action('Admin\\IndexController@index');
     }
     return $next($request);
 }
 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request $request
  * @param  \Closure $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     if (!$this->adminUserService->isSignedIn()) {
         if ($request->ajax()) {
             return response('Unauthorized.', 401);
         } else {
             return redirect()->guest(\URL::action('Admin\\AuthController@getSignIn'));
         }
     }
     view()->share('authUser', $this->adminUserService->getUser());
     return $next($request);
 }