src/Serverfireteam/Panel/libs/AuthMiddleware.php
public function handle($request, Closure $next)
    {

        if (is_null(\Auth::guard('panel')->user())) {
            $message = session('message', Lang::get('panel::fields.enterEmail'));

            return redirect('/panel/login')
                ->with('message', $message)
                ->with('mesType', 'message');
        }

        return $next($request);
    }
public function handle($request, Closure $next)
    {

        if (is_null(\Auth::guard('panel')->user())) {
            $message = session('message', Lang::get('panel::fields.enterEmail'));

            return redirect('/panel/login')
                ->with('message', $message)
                ->with('mesType', 'message');
        }

        return $next($request);
    }
public function handle ( $ request , Closure $ next ) { if ( is_null ( \ Auth :: guard ( 'panel' ) -> user ( ) ) ) { $ message = session ( 'message' , Lang :: get ( 'panel::fields.enterEmail' ) ) ; return redirect ( '/panel/login' ) -> with ( 'message' , $ message ) -> with ( 'mesType' , 'message' ) ; } return $ next ( $ request ) ; }
Handle an incoming request.

@param  \Illuminate\Http\Request  $request
@param  \Closure  $next
@return mixed
Handle an incoming request .