File: /var/www/console.fixgini.com/app/Notifications/LogAlertNotification.php
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class LogAlertNotification extends Notification
{
use Queueable;
public $message;
public function __construct($message)
{
$this->message = $message;
}
public function via(object $notifiable): array
{
return ['mail'];
}
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage)
->line('Error:' . $this->message)
->action('Go to console', url('https://fixgini.com'))
->line('Thank you for using our application!');
}
public function toArray(object $notifiable): array
{
return [
//
];
}
}