app/Notifications/AddInvoice.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
@return \Illuminate\Notifications\Messages\MailMessage
Get the mail representation of the notification . @param mixed $notifiable @return \ Illuminate \ Notifications \ Messages \ MailMessage
public function toMail($notifiable)
    {
        $url = 'http://127.0.0.1:8000/invoices/Details/'.$this->invoice_id ;
        return (new MailMessage)
                    ->subject('تم أضافة فاتوره جديدة')
                    ->line('.أضافة فاتوره جديدة ')
                    ->action('عرض الفاتورة', $url)
                    ->line('شكرا لاستخدام برنامج الفواتير !');
    }
public function toMail ( $ notifiable ) { $ url = 'http://127.0.0.1:8000/invoices/Details/' . $ this -> invoice_id ; return ( new MailMessage ) -> subject ( 'تم أضافة فاتوره جديدة') -> line ( '.أضافة فاتوره جديدة ') -> action ( 'عرض الفاتورة', $url) -> line ( 'شكرا لاستخدام برنامج الفواتير !'); }
Get the mail representation of the notification.
Get the mail representation of the notification .
// ->line('The introduction to the notification.') // ->action('Notification Action', url('/')) // ->line('Thank you for using our application!');