You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
477 B
19 lines
477 B
<?php
|
|
|
|
namespace App\Domains\Identity\Actions\Onboarding;
|
|
|
|
use App\Domains\Identity\Models\User;
|
|
|
|
class ResendVerificationEmail
|
|
{
|
|
/**
|
|
* Send the email verification notification to the given user.
|
|
*
|
|
* Accepts the User model explicitly instead of pulling it from request(),
|
|
* keeping this action free of any HTTP/request dependencies.
|
|
*/
|
|
public function execute(User $user): void
|
|
{
|
|
$user->sendEmailVerificationNotification();
|
|
}
|
|
}
|
|
|