Файловый менеджер - Редактировать - /home/clickysoft/public_html/rgr.clickysoft.net/app/Notifications/ReferralNotification.php
Назад
<?php namespace App\Notifications; use App\Mail\ReferralMailable; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Mail; use Illuminate\Notifications\Messages\MailMessage; class ReferralNotification extends Notification implements ShouldQueue { use Queueable; protected $data; protected $emailUsers; protected $emailPractice; protected $subject; protected $files; public function __construct($data, $emailUsers, $emailPractice, $subject, $files) { $this->data = $data; $this->emailUsers = $emailUsers; $this->emailPractice = $emailPractice; $this->subject = $subject; $this->files = $files; } /** * 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) // ->subject($this->subject) // ->view('emails.referral', $this->data) // // ->to($this->emailPractice) // ->bcc($this->emailUsers); // if (!empty($this->files)) { // foreach ($this->files as $file) { // $mailMessage->attach(public_path('referral-documents/' . $file)); // } // } // return $mailMessage; Mail::to($this->emailPractice) ->bcc($this->emailUsers) ->send(new ReferralMailable($this->data, $this->subject, $this->files)); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка