%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/diaspora/api/app/Notifications/
Upload File :
Create Path :
Current File : /var/www/html/diaspora/api/app/Notifications/ResetPasswordNotification.php

<?php

namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class ResetPasswordNotification extends Notification
{
    use Queueable;
    private $token;
    private $language;

    /**
     * Create a new notification instance.
     *
     * @param $token
     * @param $language
     */
    public function __construct($token, $language)
    {
        $this->token = $token;
        $this->language = $language;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @return array
     */
    public function via()
    {
        return ['mail'];
    }

    /**
     * Get the mail representation of the notification.
     *
     * @param $notifiable
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
    public function toMail($notifiable)
    {
        return (new MailMessage)->from('noreply@disaporashqiptare.info', 'Diaspora Shqiptare')
                                ->subject(trans('resetPassword.subject', [], $this->language))
                                ->greeting(' ')
                                ->line(trans('resetPassword.line1', [], $this->language))
                                ->action(trans('resetPassword.change', [], $this->language), env('DASHBOARD_URL', 'http://diasporashqiptare.info/#/') . 'arp?token=' . $this->token . '&email=' . $notifiable->email)
                                ->salutation(' ');
    }

    /**
     * Get the array representation of the notification.
     *
     * @return array
     */
    public function toArray()
    {
        return [//
        ];
    }
}

Zerion Mini Shell 1.0