Is there a way to hide a page?

I know you can hide it from the navigation based on authorisation and using this method:

public static function canAccess(): bool
{
    return auth()->user()->canManageSettings();
}


However I don't want to disable it completely, I just don't want to have the link rendered in the navigation and I cannot find in the docs where this might be a possibility.
Was this page helpful?