public function handle($request, Closure $next)
    {
        if (session('eyewitness:auth') || app(Eye::class)->check($request)) {
            return $next($request);
        }

        return redirect()->route('eyewitness.login')->withWarning('Sorry - you must login to Eyewitness first.');
    }
public function handle($request, Closure $next)
    {
        if (session('eyewitness:auth') || app(Eye::class)->check($request)) {
            return $next($request);
        }

        return redirect()->route('eyewitness.login')->withWarning('Sorry - you must login to Eyewitness first.');
    }
public function handle ( $ request , Closure $ next ) { if ( session ( 'eyewitness:auth' ) || app ( Eye :: class ) -> check ( $ request ) ) { return $ next ( $ request ) ; } return redirect ( ) -> route ( 'eyewitness.login' ) -> withWarning ( 'Sorry - you must login to Eyewitness first.' ) ; }
Authenticate a user for Eyewitness.

@param  \Illuminate\Http\Request  $request
@param  \Closure  $next
@return mixed
Authenticate a user for Eyewitness .