Skip to content

Instantly share code, notes, and snippets.

@rmcdaniel
Created October 29, 2022 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmcdaniel/163d69cf976a18f600d39f9169ccc591 to your computer and use it in GitHub Desktop.
Save rmcdaniel/163d69cf976a18f600d39f9169ccc591 to your computer and use it in GitHub Desktop.
<?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