File manager - Edit - /var/www/payraty/hris/app/Mail/GoalReminderMail.php
Back
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Mail\Mailables\Content; use Illuminate\Mail\Mailables\Envelope; use Illuminate\Queue\SerializesModels; use App\Models\Employee; class GoalReminderMail extends Mailable { use Queueable, SerializesModels; public $employee; /** * Create a new message instance. */ public function __construct(Employee $employee) { $this->employee = $employee; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: 'Reminder: It\'s Time to Create Your Goals!', ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'email.goal_reminder', with: [ 'employeeName' => $this->employee->name, 'goalUrl' => route('simple-goals.index'), ] ); } /** * Get the attachments for the message. * * @return array<int, \Illuminate\Mail\Mailables\Attachment> */ public function attachments(): array { return []; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.98 |
proxy
|
phpinfo
|
Settings