Support the ongoing development of Laravel.io →
Authentication Security Validation

I created the login using php artisan make:auth I read I have to override AuthController.php but , I want to override Login() function and I got some errors.

I wanted modify this file, but I read I can't do.

Illuminate\Foundation\Auth\AuthenticatesUsers.php

So , I wanted to override AuthController.php which use AuthenticatesUsers.php but I couldn't override it.

In short words , I would like to save emails and passwords from unautorizades users , but where can I get that fields ,. I created a model like this.

namespace App;

use Illuminate\Database\Eloquent\Model;

class AccessHistory extends Model
{
    //
	 protected $fillable = [
        'usuario_id', 'password','date_access','correct',
    ];
}

How can I get that fields,before to login ? I would like to ask other question. I don't know if I have to create other thread , but there is in the same way. I would like to have password which expires 30 days after, and change it . How can I do that?

Last updated 2 years ago.
0

You can override any methods you want on AuthController. Methods defined on the actual class (AuthController) override the methods inherited from the traits.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

dormidosan dormidosan Joined 31 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.