mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
22 lines
489 B
PHP
22 lines
489 B
PHP
<?php
|
|
namespace Domain\Sharing\Actions;
|
|
|
|
use Spatie\QueueableAction\QueueableAction;
|
|
use Illuminate\Support\Facades\Notification;
|
|
use Domain\Sharing\Notifications\SharedSendViaEmail;
|
|
|
|
class SendViaEmailAction
|
|
{
|
|
use QueueableAction;
|
|
|
|
public function __invoke(
|
|
array $emails,
|
|
string $token,
|
|
): void {
|
|
foreach ($emails as $email) {
|
|
Notification::route('mail', $email)
|
|
->notify(new SharedSendViaEmail($token));
|
|
}
|
|
}
|
|
}
|