How do I replace the login page with Laravel Nova 5? #6740
-
I have installed Laravel Nova 5 for the first time and want to disable the default authorization mechanics. I need to authorize only via Telegram (I use Laravel Socialite for this). In the Filament admin this is easily done with a plugin, but in Laravel Nova 5 I haven't found how to do it without overriding bindings and building my own wrappers. I have never used Nova before and now I decided to compare the capability of these tools. Googling the problem leads to Nova versions 3 and 4, which doesn't work for me. Has anyone encountered this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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();
}
} |
Beta Was this translation helpful? Give feedback.
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.