codigo actual del servidor, con avances de joan
This commit is contained in:
44
app/Notifications/AppEmailVerificationNotification.php
Normal file
44
app/Notifications/AppEmailVerificationNotification.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Notifications\Notification;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use App\Mail\EmailManager;
|
||||
use Auth;
|
||||
use App\Models\User;
|
||||
|
||||
class AppEmailVerificationNotification extends Notification
|
||||
{
|
||||
use Queueable;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public function via($notifiable)
|
||||
{
|
||||
return ['mail'];
|
||||
}
|
||||
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
$array['view'] = 'emails.app_verification';
|
||||
$array['subject'] = translate('Email Verification');
|
||||
$array['content'] = translate('Please enter the code:'.$notifiable->verification_code);
|
||||
|
||||
return (new MailMessage)
|
||||
->view('emails.app_verification', ['array' => $array])
|
||||
->subject(translate('Email Verification - ').env('APP_NAME'));
|
||||
}
|
||||
|
||||
public function toArray($notifiable)
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user