56 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
<?php
 | 
						|
 | 
						|
declare(strict_types=1);
 | 
						|
 | 
						|
namespace App\Notifications;
 | 
						|
 | 
						|
use Illuminate\Bus\Queueable;
 | 
						|
use Illuminate\Notifications\Messages\MailMessage;
 | 
						|
use Illuminate\Notifications\Notification;
 | 
						|
 | 
						|
class WalletBalanceLowNotification extends Notification
 | 
						|
{
 | 
						|
    use Queueable;
 | 
						|
 | 
						|
    /**
 | 
						|
     * Create a new notification instance.
 | 
						|
     */
 | 
						|
    public function __construct()
 | 
						|
    {
 | 
						|
        //
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * 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)
 | 
						|
            ->line('Your balance of your wallet is low.')
 | 
						|
            ->action('see your dashboard', route('dashboard'))
 | 
						|
            ->line('Thank you for using our application!');
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Get the array representation of the notification.
 | 
						|
     *
 | 
						|
     * @return array<string, mixed>
 | 
						|
     */
 | 
						|
    public function toArray(object $notifiable): array
 | 
						|
    {
 | 
						|
        return [
 | 
						|
            //
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |