Question : add variables to line in laravel notification
Answered by : nachooch
public function toMail($notifiable) { $username = $this->username; return (new MailMessage) ->greeting('Hello, '.$username) ->line('You received a brand new msg!') ->action('View msg', url('/'.$username)); }
Source : https://stackoverflow.com/questions/47607433/laravel-passing-variable-in-notify | Last Update : Mon, 07 Feb 22