*/ public function via(object $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { $url = url()->signedRoute('invited_onboarding', ['portfolio' => $this->portfolio->id, 'user' => $notifiable->id], now()->addDays(90)); return (new MailMessage) ->replyTo($this->sender->email, $this->sender->name) ->greeting('Hey there! 👋') ->subject("You've been invited to {$this->portfolio->title} on Investbrain!") ->line("{$this->sender->name} has invited you to **{$this->portfolio->title}** on Investbrain, a smart open-source investment tracker that consolidates and monitors market performance across your different brokerages.") ->line("Once you're in, you'll be able to see all the holdings, dividends, market performance and more for {$this->portfolio->title}!") ->action('Get Started', $url) ->line('If you have any questions, you can reply to this email.') ->salutation("See you there,\n".e($this->sender->name)); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ // ]; } }