Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add variables to line in laravel notification

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 by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #variables #line #laravel #notification
ADD COMMENT
Topic
Name
9+8 =