skip to Main Content

I’ve been searching but couldn’t find a solution.
I don’t know if Nova allows it, but I need to save to a Log file every time a user accesses through the Login screen.

2

Answers


  1. goto Http/Controllers/Auth/LoginController.php and you can write your code in login method.

    Login or Signup to reply.
  2. You can override nova login controller in NovaServiceProvider

    public function boot()
    {
        parent::boot();
    
        $this->app->alias(
            AppHttpControllersNovaLoginController::class,
            LaravelNovaHttpControllersLoginController::class
        );
    }
    

    And add custom logic to new LoginController

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search