public function getNotFoundMessage(NotFoundHttpException $exception)
    {
        $message = ! empty($exception->getMessage()) ? $exception->getMessage() : class_basename($exception);
        if (basename($exception->getFile()) === 'RouteCollection.php') {
            $message = __('exception::exceptions.not_found_http.message');
        }

        return $message;
    }
public function getNotFoundMessage(NotFoundHttpException $exception)
    {
        $message = ! empty($exception->getMessage()) ? $exception->getMessage() : class_basename($exception);
        if (basename($exception->getFile()) === 'RouteCollection.php') {
            $message = __('exception::exceptions.not_found_http.message');
        }

        return $message;
    }
public function getNotFoundMessage ( NotFoundHttpException $ exception ) { $ message = ! empty ( $ exception -> getMessage ( ) ) ? $ exception -> getMessage ( ) : class_basename ( $ exception ) ; if ( basename ( $ exception -> getFile ( ) ) === 'RouteCollection.php' ) { $ message = __ ( 'exception::exceptions.not_found_http.message' ) ; } return $ message ; }
Get message based on file. If file is RouteCollection return specific
message.

@param  NotFoundHttpException $exception
@return string
Get message based on file . If file is RouteCollection return specific message .