app/Notifications/UserRegister.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)
    {
        if($notifiable->role == 0){
            return (new MailMessage)
                        ->line($this->insideMail['lineOne'])
                        ->line($this->insideMail['lineTwo'])
                        ->line($this->insideMail['lineThree']);
        }
        elseif($notifiable->role == 1)
        {
            return (new MailMessage)
                        ->line($this->insideMail['line']);
        }
    }
public function toMail ( $ notifiable ) { if ( $ notifiable -> role == 0 ) { return ( new MailMessage ) -> line ( $ this -> insideMail [ 'lineOne' ] ) -> line ( $ this -> insideMail [ 'lineTwo' ] ) -> line ( $ this -> insideMail [ 'lineThree' ] ) ; } elseif ( $ notifiable -> role == 1 ) { return ( new MailMessage ) -> line ( $ this -> insideMail [ 'line' ] ) ; } }
Get the mail representation of the notification.
Get the mail representation of the notification .