tests/Support/DummyNotificationWithQueuing.php
/**
     * Get the mail representation of the notification.
     *
     * @param mixed $notifiable
     *
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
Get the mail representation of the notification.
@param mixed $notifiable


Get the mail representation of the notification . @param mixed $notifiable
public function toMail($notifiable)
    {
        if ($this->useView !== null) {
            return (new MailMessage())
                ->view($this->useView)
                ->line('The introduction to the notification.')
                ->action('Notification Action', url('/'))
                ->line('Thank you for using our application!');
        }
        if ($this->useMailable === true) {
            return new DummyMailable();
        }
        return (new MailMessage())
            ->line('The introduction to the notification.')
            ->action('Notification Action', url('/'))
            ->line('Thank you for using our application!');
    }
public function toMail ( $ notifiable ) { if ( $ this -> useView !== null ) { return ( new MailMessage ( ) ) -> view ( $ this -> useView ) -> line ( 'The introduction to the notification.' ) -> action ( 'Notification Action' , url ( '/' ) ) -> line ( 'Thank you for using our application!' ) ; } if ( $ this -> useMailable === true ) { return new DummyMailable ( ) ; } return ( new MailMessage ( ) ) -> line ( 'The introduction to the notification.' ) -> action ( 'Notification Action' , url ( '/' ) ) -> line ( 'Thank you for using our application!' ) ; }
Get the mail representation of the notification.
Get the mail representation of the notification .