Learn how to customize the Nova authentication logic.
app/Providers/NovaServiceProvider.php
file.
routes
method of your application’s App\Providers\NovaServiceProvider
class:
User
model and App\Providers\NovaServiceProvider
service provider.
First, add the Laravel\Fortify\TwoFactorAuthenticatable
trait to your application’s User
model:
routes
method in your application’s App\Providers\NovaServiceProvider
class to enable two-factor authentication:
nova:publish
Artisan command to publish the required Fortify migrations. Then, run the migrate
command:
features
configuration item in the fortify
method of your application’s App\Provider\NovaServiceProvider
class:
User
model implements the Illuminate\Contracts\Auth\MustVerifyEmail
interface:
Laravel\Nova\Http\Middleware\EnsureEmailIsVerified
middleware to the api_middleware
configuration key in your application’s config/nova.php
configuration file: