Add Variables To Line In Laravel Notification

[Solved] Add Variables To Line In Laravel Notification | Php Frameworks Laravel - Code Explorer | yomemimo.com
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

Answers related to add variables to line in laravel notification

Code Explorer Popular Question For Php Frameworks Laravel