Created
October 29, 2022 04:16
-
-
Save rmcdaniel/163d69cf976a18f600d39f9169ccc591 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
namespace App\Workflows\VerifyEmail; | |
use App\Models\User; | |
use Workflow\Activity; | |
class VerifyEmailActivity extends Activity | |
{ | |
public function execute($email, $password) | |
{ | |
$user = new User(); | |
$user->name = ''; | |
$user->email = $email; | |
$user->email_verified_at = now(); | |
$user->password = $password; | |
$user->save(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment