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