*/ public function via(object $notifiable): array { return ['mail']; } public function toMail(User $notifiable): MailMessage { $message = (new MailMessage) ->subject(__('Your Certified subscription is active')) ->greeting(__('Hello :name,', ['name' => $notifiable->name])) ->line(__('Thanks! Your payment was received and your :plan subscription is active.', ['plan' => $this->subscription->plan->label()])); if ($this->subscription->current_period_ends_at) { $message->line(__('Your subscription runs until :date.', ['date' => $this->subscription->current_period_ends_at->toFormattedDateString()])); } return $message->action(__('View your subscription'), route('billing.edit')); } }