Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/app/Listeners/OtherPaymentNotification.php
Назад
<?php namespace App\Listeners; use App\Events\OtherPaymentEvent; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; use App\Repositories\NotificationRepository; use App\Interfaces\NotificationRepositoryInterface; class OtherPaymentNotification { public NotificationRepositoryInterface $notificationInterfaceObj; /** * Create the event listener. */ public function __construct(NotificationRepository $notifRepo) { $this->notificationInterfaceObj = $notifRepo; } /** * Handle the event. */ public function handle(OtherPaymentEvent $event): void { $title = 'Payment Sent'; $message = 'Payment Has been sent to '.$event->property_owner->name.'.'; $fl = $this->notificationInterfaceObj->CreateAndSendNotification($event->tenant,$title,$message); $title = 'Payment Recieved'; $message = 'Payment Has been recieved from '.$event->tenant->name.'.'; $fp = $this->notificationInterfaceObj->CreateAndSendNotification($event->property_owner,$title,$message); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка