I used a new function in Laravel:
php artisan make:auth
But when I register, the users database table will be used by default, but I want to change it to another table. And by default it uses updated_at and created_at in this table, I also want to delete this.
Auth / AuthController
protected function create(array $data) { return User::create([ 'voornaam' => $data['voornaam'], 'email' => $data['email'], 'password' => bcrypt($data['password']), ]); }
\ User application
protected $fillable = [ 'voornaam', 'email', 'password', ];
This is what I thought would have changed him, but they did not. I hope someone can tell me more about this issue.
source share