<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class VerifyEmailNotification extends Notification implements ShouldQueue
{
use Queueable;
protected $token;
/**
* Create a new notification instance.
*
* @return void
*/
public function __construct($token)
{
$this->token = $token;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
return (new MailMessage)
->subject(config('constants.title') . ' - Please Verify Your Email')
->line('You are receiving this email because you have sign up on ' . config('constants.title') . '.')
->action('Verify Email', url(config('app.url').route('verify_email', ['token' => $this->token], false)))
->line('If you did not sign up on ' . config('constants.title') . ', no further action is required.');
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}
I am using laravel 5.5 email notification. I have changed this mail notification, but somewhere it has been cached. My Application is sending me mail with old content, not with the current code snippet that i have shared here. I am using supervisor to monitor queue processes.
I have also cleared the view cache by running below command but it does work
php artisan view:clear
I have also restarted the queue
php artisan queue:restart
I have also ran
php artisan config:cache
but nothing seems to work for me.
Is this issue can be related to supervisor?