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?
You can override any methods you want on AuthController. Methods defined on the actual class (AuthController) override the methods inherited from the traits.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community