Answer the question
In order to leave comments, you need to log in
Why is the user not being registered?
I use standard registration on laravel 5.5, with changing the template to my own.
in the controller RegisterController
in the create method I wrote the following
protected function create(array $data)
{
$user = User::create([
'fio' => $data['fio'],
'email' => $data['email'],
'type' => $data['admin'],
'login' => $data['login'],
'password' => bcrypt($data['password']),
'access' => '2/1/1/1/1/1/1/1/1/1/1',
'created_at' => date('Y-m-d H:i:s'),
'updated_at' => date('Y-m-d H:i:s')
]);
return $user;
}
action="{{ route('register')}}"
. What am I doing wrong?
Answer the question
In order to leave comments, you need to log in
\Illuminate\Auth\Events\Registered
. DocumentationDidn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question