init: scheduled backups

This commit is contained in:
Andras Bacsai
2023-08-08 17:28:36 +02:00
parent b4b1c671bd
commit 46909dca85
11 changed files with 159 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Notifications\Channels;
use Exception;
use Illuminate\Mail\Message;
use Illuminate\Notifications\Notification;
use Illuminate\Support\Facades\Mail;
@@ -15,7 +16,7 @@ class EmailChannel
$recepients = $notifiable->getRecepients($notification);
if (count($recepients) === 0) {
throw new \Exception('No email recipients found');
throw new Exception('No email recipients found');
}
$mailMessage = $notification->toMail($notifiable);