app/Notifications/TareaCompartidaNotification.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 = route('tarea.index');
        return (new MailMessage)
                    ->subject('Tienes una nueva tarea compartida')
                    ->greeting('Estimad@ '.$notifiable->full_name)
                    ->line($this->tarea->usuario->full_name.' ha compartido una tarea contigo. ')
                    ->action('Ir a la tarea', $url)
                    ->line('Muchas gracias por usuar nuestra aplicación!');
    }
public function toMail ( $ notifiable ) { $ url = route ( 'tarea.index' ) ; return ( new MailMessage ) -> subject ( 'Tienes una nueva tarea compartida' ) -> greeting ( 'Estimad@ ' . $ notifiable -> full_name ) -> line ( $ this -> tarea -> usuario -> full_name . ' ha compartido una tarea contigo. ' ) -> action ( 'Ir a la tarea' , $ url ) -> line ( 'Muchas gracias por usuar nuestra aplicación!') ; }
Get the mail representation of the notification.
Get the mail representation of the notification .