Файловый менеджер - Редактировать - /home/clickysoft/public_html/jmapi5.clickysoft.net/Notifications.tar
Назад
ForgotPasswordNotification.php 0000644 00000002522 15021222005 0012575 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class ForgotPasswordNotification extends Notification implements ShouldQueue { use Queueable; protected $resetCode; /** * Create a new notification instance. * * @return void */ public function __construct($resetCode) { $this->resetCode = $resetCode; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { return (new MailMessage)->view('emails.forgot-passwod', ['email' => $notifiable->email, 'resetCode' => $this->resetCode])->subject(env("APP_NAME") . " - Password Reset Code."); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } RegisterNotification.php 0000644 00000002362 15021222005 0011400 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class RegisterNotification extends Notification implements ShouldQueue { use Queueable; /** * Create a new notification instance. * * @return void */ public function __construct() { // } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { return (new MailMessage) ->view('emails.register', ['email' => $notifiable->email]) ->subject("Welcome to " . env("APP_NAME")); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderApprovedConfirmedNotification.php 0000644 00000003321 15021222005 0014213 0 ustar 00 <?php namespace App\Notifications; use App\Channels\Messages\SMS; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Log; class OrderApprovedConfirmedNotification extends Notification implements ShouldQueue { use Queueable; public $data; public function __construct($data) { $this->data = $data; } public function via($notifiable) { return ['mail', 'sms']; } public function toMail($notifiable) { Log::channel('info_errors')->info("Payment Reminder : Invoice path for Order No. " . $this->data['order_number']); Log::channel('info_errors')->info($this->data['invoice_path']); $mailMessage = (new MailMessage) ->view('admin.mails.order_approved_confirmed', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("ORDER ACKNOWLEDGMENT #{$this->data["order_number"]} - Please Review") ->attach($this->data['invoice_path']); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } public function toSms($notifiable) { if (!empty($notifiable->phone_number) && $notifiable->sms_notification == 1) { return (new SMS) ->content("Hi it's J&M Trophies, Thank you for your Order #{$this->data["order_number"]} with J&M Trophies, inc.! Please keep a close eye on your email for order updates!"); } } public function toArray($notifiable) { return [ // ]; } } OrderInvoiceNotification.php 0000644 00000003120 15021222005 0012175 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Log; use function Symfony\Component\Translation\t; class OrderInvoiceNotification extends Notification { // use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_invoice', ['data' => $this->data]) ->subject("Order Invoice") ->replyTo('orders@jmtrophies.com') ->attach($this->data['invoice_path']); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderStatusUpdatedNotification.php 0000644 00000002736 15021222005 0013407 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class OrderStatusUpdatedNotification extends Notification { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_status_updated', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("Order Status Updated"); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderWaitingOnCustomerNotification.php 0000644 00000003706 15021222005 0014234 0 ustar 00 <?php namespace App\Notifications; use App\Channels\Messages\SMS; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class OrderWaitingOnCustomerNotification extends Notification { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail', 'sms']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_status_updated', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("We are waiting on you - your order #{$this->data['order_number']} is on hold"); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } public function toSms($notifiable) { if(!empty($notifiable->phone_number) && $notifiable->sms_notification == 1) { return (new SMS) ->content("Hi it's J&M Trophies, This is a reminder that your order #{$this->data['order_number']} at J&M trophies, Inc. is on hold and at risk for being delayed. We are awaiting your response."); } } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderPlacedNotification.php 0000644 00000002452 15021222005 0012000 0 ustar 00 <?php namespace App\Notifications; use App\Channels\Messages\SMS; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class OrderPlacedNotification extends Notification implements ShouldQueue { use Queueable; public $data; public function __construct($data) { $this->data = $data; } public function via($notifiable) { return ['mail', 'sms']; } public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_placed_user', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("Order #{$this->data["order_number"]} Placed Successfully"); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } public function toSms($notifiable) { if(!empty($notifiable->phone_number) && $notifiable->sms_notification == 1) { return (new SMS) ->content("Hi it's J&M Trophies, Order Placed Successfully"); } } public function toArray($notifiable) { return [ // ]; } } WelcomeNotification.php 0000644 00000002317 15021222005 0011207 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class WelcomeNotification extends Notification implements ShouldQueue { use Queueable; /** * Create a new notification instance. * * @return void */ public function __construct() { // } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { return (new MailMessage) ->view('emails.welcome') ->subject("Welcome to " . env("APP_NAME")); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderCancelUserNotification.php 0000644 00000002755 15021222005 0012642 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class OrderCancelUserNotification extends Notification implements ShouldQueue { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_cancelled_user', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("Order cancelled"); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderInAssemblyCleaningNotification.php 0000644 00000003617 15021222005 0014323 0 ustar 00 <?php namespace App\Notifications; use App\Channels\Messages\SMS; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class OrderInAssemblyCleaningNotification extends Notification implements ShouldQueue { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail', 'sms']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_in_assembly_cleaning', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("Update on Your Order #{$this->data["order_number"]} - Final Stages of Assembly and Cleaning"); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } public function toSms($notifiable) { if(!empty($notifiable->phone_number) && $notifiable->sms_notification == 1) { return (new SMS) ->content("Hi it's J&M Trophies, Update on Your Order - Final Stages of Assembly and Cleaning"); } } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderPickedShippedNotification.php 0000644 00000004325 15021222005 0013325 0 ustar 00 <?php namespace App\Notifications; use App\Channels\Messages\SMS; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Log; class OrderPickedShippedNotification extends Notification implements ShouldQueue { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail', 'sms']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_picked_shipped', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject($this->data['subject_title']) ->attach($this->data['invoice_path']); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } public function toSms($notifiable) { if(!empty($notifiable->phone_number) && $notifiable->sms_notification == 1) { if (!empty($this->data["tracking_number"])){ $content = "Hi! It's J&M, Your order {$this->data["order_number"]} has been Picked/Shipped! Please see your tracking number here: {$this->data["tracking_number_digits"]}"; } else { $content = "Hi! It's J&M, Your order {$this->data["order_number"]} has been Picked/Shipped!"; } return (new SMS) ->content($content); } } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } InvoicePaidUserNotification.php 0000644 00000002770 15021222005 0012650 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class InvoicePaidUserNotification extends Notification { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.invoice_paid_user', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject('Invoice paid for order '. $this->data['order_number']); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderCompletedNotification.php 0000644 00000004267 15021222005 0012532 0 ustar 00 <?php namespace App\Notifications; use App\Channels\Messages\SMS; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Log; class OrderCompletedNotification extends Notification implements ShouldQueue { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail', 'sms']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_completed', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("Order #{$this->data["order_number"]} Completed - Exciting News!") ->attach($this->data['invoice_path']); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } public function toSms($notifiable) { if(!empty($notifiable->phone_number) && $notifiable->sms_notification == 1) { if (!empty($this->data["tracking_number"])){ $content = "Hi! It's J&M, Your order {$this->data["order_number"]} is now complete!"; } else { $content = "Hi! It's J&M, Your order {$this->data["order_number"]} is now complete and ready for pick up. See you soon!"; } return (new SMS) ->content($content); } } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } VerifyEmail.php 0000644 00000002756 15021222005 0007470 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class VerifyEmail extends Notification // implements ShouldQueue { // use Queueable; protected $token; /** * Create a new notification instance. * * @return void */ public function __construct($token) { $this->token = $token; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via(mixed $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return MailMessage */ public function toMail(mixed $notifiable): MailMessage { return (new MailMessage) ->subject('Verify Email Address') ->line('Please click the button below to verify your email address.') ->action('Verify Email', url(config('app.react_app_url').'?is_token=true&token='.$this->token)) ->line('If you did not create an account, no further action is required.'); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray(mixed $notifiable): array { return [ // ]; } } OrderPaymentReminderNotification.php 0000644 00000003473 15021222005 0013717 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Log; class OrderPaymentReminderNotification extends Notification implements ShouldQueue { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { Log::channel('info_errors')->info("Payment Reminder : Invoice path for Order No. " . $this->data['order_number']); Log::channel('info_errors')->info($this->data['invoice_path']); $mailMessage = (new MailMessage) ->view('admin.mails.order_payment_reminder', ['data' => $this->data]) ->subject("Urgent Payment Reminder - Order {$this->data['order_number']}") ->replyTo('orders@jmtrophies.com') ->attach($this->data['invoice_path']); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderInProductionNotification.php 0000644 00000003675 15021222005 0013235 0 ustar 00 <?php namespace App\Notifications; use App\Channels\Messages\SMS; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class OrderInProductionNotification extends Notification implements ShouldQueue { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail', 'sms']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_in_production', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("Your Order #{$this->data["order_number"]} is in Production - Exciting Progress Update!"); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } public function toSms($notifiable) { if(!empty($notifiable->phone_number) && $notifiable->sms_notification == 1) { return (new SMS) ->content("Hi it's J&M Trophies, Woo Hoo! Your order #{$this->data["order_number"]} has started its production! We will notify you as soon as it is complete!"); } } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderQuoteUserNotification.php 0000644 00000003021 15021222005 0012535 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class OrderQuoteUserNotification extends Notification implements ShouldQueue { use Queueable; public $data; /** * Create a new notification instance. * * @return void */ public function __construct($data) { $this->data = $data; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['mail']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $mailMessage = (new MailMessage) ->view('admin.mails.order_quote_user', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("Quote converted to order #{$this->data['order_number']}"); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } return $mailMessage; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } } OrderArtworkReminderNotification.php 0000644 00000003444 15021222005 0013731 0 ustar 00 <?php namespace App\Notifications; use App\Channels\Messages\SMS; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Log; class OrderArtworkReminderNotification extends Notification implements ShouldQueue { use Queueable; public $data; public function __construct($data) { $this->data = $data; } public function via($notifiable) { return ['mail', 'sms']; } public function toMail($notifiable) { Log::channel('info_errors')->info("Atrwork Reminder : Attachment path for Order No. " . $this->data['order_number']); $mailMessage = (new MailMessage) ->view('admin.mails.order_artwork_reminder', ['data' => $this->data]) ->replyTo('orders@jmtrophies.com') ->subject("Your Artwork is Ready. ACTION REQUIRED ORDER NUMBER #{$this->data["order_number"]}"); if (!empty($notifiable->secondary_email)) { $mailMessage->cc($notifiable->secondary_email); } if (count($this->data["attachments"]) > 0) { foreach ($this->data["attachments"] as $attachment) { $mailMessage->attach($attachment); Log::channel('info_errors')->info($this->data["attachments"]); } } return $mailMessage; } public function toSms($notifiable) { if (!empty($notifiable->phone_number) && $notifiable->sms_notification == 1) { return (new SMS) ->content("Hi it's J&M Trophies, Your artwork for order #{$this->data["order_number"]} is ready to view. A proof has been sent to your email. Please check its contents and approve ASAP!"); } } } OrganizationRegisterNotification.php 0000644 00000002152 15021236657 0014004 0 ustar 00 <?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class OrganizationRegisterNotification extends Notification implements ShouldQueue { use Queueable; /** * Create a new notification instance. */ public function __construct() { // } /** * Get the notification's delivery channels. * * @return array<int, string> */ public function via(object $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { return (new MailMessage)->view('emails.register', ['email' => $notifiable->email])->subject("Welcome to " . env("APP_NAME")); } /** * Get the array representation of the notification. * * @return array<string, mixed> */ public function toArray(object $notifiable): array { return [ // ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка