Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/app/Listeners/SendNotificationToLandlordWhenTenantCreatesEvent.php
Назад
<?php namespace App\Listeners; use App\Events\EventCreateEventTenant; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; use App\Repositories\NotificationRepository; use App\Interfaces\NotificationRepositoryInterface; class SendNotificationToLandlordWhenTenantCreatesEvent { public NotificationRepositoryInterface $notificationInterfaceObj; /** * Create the event listener. */ public function __construct(NotificationRepository $notifRepo) { $this->notificationInterfaceObj = $notifRepo; } /** * Handle the event. */ public function handle(EventCreateEventTenant $event): void { $title = 'Event Created By '.$event->tenant->name; $message = $event->tenant->name.' created event with the name of '.$event->event_title.' agains\'t your Unit '.$event->unit->number.'.'; $fl = $this->notificationInterfaceObj->CreateAndSendNotification($event->landlord,$title,$message); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка