Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/app/Mail/BulkShiftEmail.php
Назад
<?php namespace App\Mail; use App\Models\EmployeeShiftSchedule; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class BulkShiftEmail extends Mailable implements ShouldQueue { use Queueable, SerializesModels; public $dateRange; public $userId; /** * Create a new message instance. * * @return void */ public function __construct($dateRange, $userId) { $this->dateRange = $dateRange; $this->userId = $userId; } /** * Build the message. * * @return $this */ public function build() { $employeeShifts = EmployeeShiftSchedule::with('shift') ->whereIn('date', $this->dateRange) ->where('user_id', $this->userId) ->get(); return $this->subject(__('email.shiftScheduled.subject')) ->markdown('mail.bulk-shift-email', [ 'employeeShifts' => $employeeShifts ]); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка