public function handle(Request $request, Closure $next)
    {
        $response = $next($request);

        if ($response->getStatusCode() !== Response::HTTP_NOT_FOUND)
            return $response;

        return $this->redirector->getRedirectFor($request) ?: $response;
    }
public function handle(Request $request, Closure $next)
    {
        $response = $next($request);

        if ($response->getStatusCode() !== Response::HTTP_NOT_FOUND)
            return $response;

        return $this->redirector->getRedirectFor($request) ?: $response;
    }
public function handle ( Request $ request , Closure $ next ) { $ response = $ next ( $ request ) ; if ( $ response -> getStatusCode ( ) !== Response :: HTTP_NOT_FOUND ) return $ response ; return $ this -> redirector -> getRedirectFor ( $ request ) ? : $ response ; }
Handle the missing pages redirection.

@param  \Illuminate\Http\Request  $request
@param  \Closure                  $next

@return mixed
Handle the missing pages redirection .