芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/app/Notifications/ShiftScheduled.php
employeeShiftSchedule = $employeeShiftSchedule; $this->company = $this->employeeShiftSchedule->shift->company; } public function via() { return ['mail', 'database']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail($notifiable) { $url = route('dashboard'); $url = getDomainSpecificUrl($url, $this->company); return parent::build() ->subject(__('email.shiftScheduled.subject') . ' - ' . config('app.name') . '.') ->greeting(__('email.hello') . ' ' . mb_ucwords($notifiable->name) . ',') ->line(__('app.date') . ': ' . $this->employeeShiftSchedule->date->toFormattedDateString()) ->line(__('modules.attendance.shiftName') . ': ' . $this->employeeShiftSchedule->shift->shift_name) ->action(__('email.loginDashboard'), $url) ->line(__('email.thankyouNote')); } public function toArray() { return [ 'user_id' => $this->employeeShiftSchedule->user_id, 'shift_id' => $this->employeeShiftSchedule->employee_shift_id, 'date' => $this->employeeShiftSchedule->date ]; } }