* @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClass */ public function via(object $notifiable): array { // phpcs:enable return ['mail']; } /** * Get the mail representation of the notification. * * @param object $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toMail(object $notifiable): MailMessage { /** @var \App\Models\Settings */ $settings = app(Settings::class); /** @var \App\Models\Customer $notifiable */ /** @var string $first_name */ $first_name = $notifiable->api_data->firstname; return (new MailMessage()) ->subject(trans('front.mails.subjects.update_email', [ 'site_name' => $settings->name ])) ->greeting(trans('front.mails.greetings.with_name', ['first_name' => $first_name])) ->line(trans('front.mails.contents.update_email', [ 'site_name' => $settings->name ])); } }