Skip to content

How do I replace the login page with Laravel Nova 5? #6740

Closed Answered by andrey-helldar
andrey-helldar asked this question in Q&A
Discussion options

You must be logged in to vote

I think I've found a way - you need to turn off login and register routers in the service provider and define your routes for that by implementing the right actions on the application side.

class NovaServiceProvider extends NovaApplicationServiceProvider
{
    protected function routes(): void
    {
        Nova::routes()
            ->withoutAuthenticationRoutes(false, false) // here
            ->withoutEmailVerificationRoutes()
            ->register();
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andrey-helldar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant