app/Notifications/VendorCreated.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)
    {
        $subject = sprintf(
            '%s: Your account has been created successfully %s!',
            config('app.name'),
            'Ahmed Salah'
        );
        $greeting = sprintf(
            'Hello %s!',
            $notifiable->name
        );
        return (new MailMessage)->subject(
            $subject
        )->greeting(
            $greeting
        )->salutation(
            'Yours Faithfully'
        )->line(
            'The introduction to the notification.'
        )->action(
            'Notification Action',
            url('/')
        )->line(
            'Thank you for using our application!'
        );
    }
public function toMail ( $ notifiable ) { $ subject = sprintf ( '%s: Your account has been created successfully %s!' , config ( 'app.name' ) , 'Ahmed Salah' ) ; $ greeting = sprintf ( 'Hello %s!' , $ notifiable -> name ) ; return ( new MailMessage ) -> subject ( $ subject ) -> greeting ( $ greeting ) -> salutation ( 'Yours Faithfully' ) -> 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 .
// return (new MailMessage) //             ->line('The introduction to the notification.') //             ->action('Notification Action', url('/')) //             ->line('Thank you for using our application!'); // EMAIL SUBJECT // $this->fromUser->name // EMAIL GREETING MESSAGE