App\Notifications\WelcomeMessage::toMail PHP Method

toMail() public method

Get the mail representation of the notification.
public toMail ( mixed $notifiable ) : Illuminate\Notifications\Messages\MailMessage
$notifiable mixed
return Illuminate\Notifications\Messages\MailMessage
    public function toMail($notifiable)
    {
        return (new MailMessage())->subject(trans('laralum.notifications_welcome_message_subject', ['title' => Laralum::websiteTitle()]))->line(trans('laralum.notifications_welcome_message_msg', ['user' => $this->user->name, 'title' => Laralum::websiteTitle()]))->action(trans('laralum.notifications_welcome_message_action'), url('/'));
    }