Created
October 23, 2020 06:01
-
-
Save andyyou/ab95f2f18685740fa8e09c95852a4891 to your computer and use it in GitHub Desktop.
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/Actions/Fortify/CreateNewUser.php | |
['required', 'string', 'email', 'max:255', 'unique:users,email,NULL,id,deleted_at,NULL'], | |
// ... | |
])->validate(); | |
return DB::transaction(function () use ($input) { | |
return tap(User::create([ | |
'name' => $input['name'], | |
'email' => $input['email'], | |
'password' => Hash::make($input['password']), | |
]), function (User $user) { | |
$this->createTeam($user); | |
}); | |
}); | |
} | |
// ... | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment