HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/thread-self/cwd/app/Notifications/
Upload File :
Current File : //proc/thread-self/cwd/app/Notifications/EmailVerificationNotification.php
<?php



namespace App\Notifications;



use Illuminate\Bus\Queueable;

use Illuminate\Notifications\Notification;

use Illuminate\Notifications\Messages\MailMessage;



class EmailVerificationNotification extends Notification

{

    use Queueable;





    public function __construct()

    {

        

    }



    public function via($notifiable)

    {

        return ['mail'];

    }



    public function toMail($notifiable)

    {

        $notifiable->verification_code = encrypt($notifiable->id);

        $notifiable->save();



        $array['view'] = 'emails.verification';

        $array['subject'] = translate('Email Verification');

        $array['content'] = translate('Please click the button below to verify your email address.');

        $array['link'] = route('email.verification.confirmation', $notifiable->verification_code);



        return (new MailMessage)

            ->view('emails.verification', ['array' => $array])

            ->subject(translate('Email Verification - ') . env('APP_NAME'));

    }



    public function toArray($notifiable)

    {

    }

}