chchchchchchc

This commit is contained in:
ilmedova 2022-04-27 17:17:03 +05:00
parent 52857f2dae
commit fd5a8b8262
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class RegisterController extends Controller
*/
protected function create(array $data)
{
if(isset($data['password'])){
if(isset($data['password']) ? count($data['password']) : 0){
return User::create([
'name' => $data['firstname'] . " " . $data['lastname'],
'email' => $data['email'],