app/Notifications/AdminWelcomeNotification.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)
    {
        return (new MailMessage)
                    ->subject('Welcome ' . $notifiable->name . ' to ' . config('app.name'))
                    ->greeting('Hello ' . $notifiable->name . ',')
                    ->line('You are now an admin on our platform')
                    ->line('Your username: ' . $notifiable->email)
                    ->line('Your password: ' . $this->password)
                    ->action('Sign in now', url('/ds-admin/login'))
                    ->salutation('Regards');
    }
public function toMail ( $ notifiable ) { return ( new MailMessage ) -> subject ( 'Welcome ' . $ notifiable -> name . ' to ' . config ( 'app.name' ) ) -> greeting ( 'Hello ' . $ notifiable -> name . ',' ) -> line ( 'You are now an admin on our platform' ) -> line ( 'Your username: ' . $ notifiable -> email ) -> line ( 'Your password: ' . $ this -> password ) -> action ( 'Sign in now' , url ( '/ds-admin/login' ) ) -> salutation ( 'Regards' ) ; }
Get the mail representation of the notification.
Get the mail representation of the notification .