Skip to content

Commit

Permalink
Update UserController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pouria-azad authored Aug 9, 2023
1 parent 13c4891 commit 93b0a81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public function check_create($name, $email)
{
// TASK: find a user by $name and $email
$user = User::firstOrCreate(
['name' => $name] ,
['email' => $email] ,
['name' => $name , 'email' => $email] ,
['password' => Hash::make(str::password())] ,
);
// if not found, create a user with $name, $email and random password
Expand Down

0 comments on commit 93b0a81

Please sign in to comment.