new app store assets ready for relese

This commit is contained in:
Mark Gregory
2026-11-05 09:02:29 +00:00
parent db6c3488f1
commit 95bf13a129
35 changed files with 1516 additions and 506 deletions
@@ -1,12 +1,31 @@
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
class AccountUpdate extends Notification implements ShouldQueue {
use Queueable;
public function __construct(public string $subject, public string $message, public string $url) { $this->afterCommit(); }
public function via(object $notifiable): array {return ['mail'];}
public function toMail(object $notifiable): MailMessage {return (new MailMessage)->subject($this->subject)->line($this->message)->action('Open your account',$this->url);}
use Illuminate\Notifications\Notification;
use Illuminate\Support\Facades\DB;
class AccountUpdate extends Notification implements ShouldQueue
{
use Queueable;
public function __construct(public string $subject, public string $message, public string $url, public ?string $template = null)
{
$this->afterCommit();
}
public function via(object $notifiable): array
{
return ['mail'];
}
public function toMail(object $notifiable): MailMessage
{
$template = $this->template ? DB::table('email_templates')->where('slug', $this->template)->first() : null;
return (new MailMessage)->subject($template?->subject ?? $this->subject)->line($template?->body ?? $this->message)->action('Open your account', $this->url);
}
}