2024-10-24 16:36:54 -05:00
|
|
|
<?php
|
|
|
|
|
|
2025-01-28 17:33:54 -06:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
2024-10-24 16:36:54 -05:00
|
|
|
namespace App\Notifications;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
2025-01-28 17:14:49 -06:00
|
|
|
use Illuminate\Notifications\Notification;
|
2024-10-24 16:36:54 -05:00
|
|
|
|
|
|
|
|
class ImportSucceededNotification extends Notification implements ShouldQueue
|
|
|
|
|
{
|
|
|
|
|
use Queueable;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new notification instance.
|
|
|
|
|
*/
|
2025-01-28 17:14:49 -06:00
|
|
|
public function __construct() {}
|
2024-10-24 16:36:54 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the notification's delivery channels.
|
|
|
|
|
*
|
|
|
|
|
* @return array<int, string>
|
|
|
|
|
*/
|
|
|
|
|
public function via(object $notifiable): array
|
|
|
|
|
{
|
|
|
|
|
return ['mail'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the mail representation of the notification.
|
|
|
|
|
*/
|
|
|
|
|
public function toMail(object $notifiable): MailMessage
|
|
|
|
|
{
|
|
|
|
|
return (new MailMessage)
|
2025-01-28 17:14:49 -06:00
|
|
|
->greeting('Woot! 🎉')
|
|
|
|
|
->subject('Your Investbrain import was successful!')
|
|
|
|
|
->line('Just a heads up that your Investbrain import succeeded! Your portfolios, transactions, and daily changes are now available in your account.')
|
|
|
|
|
->action('Get Started', route('dashboard'));
|
2024-10-24 16:36:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the array representation of the notification.
|
|
|
|
|
*
|
|
|
|
|
* @return array<string, mixed>
|
|
|
|
|
*/
|
|
|
|
|
public function toArray(object $notifiable): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
//
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|