Файловый менеджер - Редактировать - /var/www/vhosts/aviointeriors.dev1.mndrn.cloud/app/update/Events.tar
Назад
Event.php 0000644 00000000171 15233463223 0006340 0 ustar 00 <?php namespace App\Events; use Illuminate\Queue\SerializesModels; abstract class Event { use SerializesModels; } UserNotificationEvent.php 0000644 00000001205 15233463223 0011545 0 ustar 00 <?php namespace App\Events; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; class UserNotificationEvent implements ShouldBroadcast { use InteractsWithSockets, SerializesModels; public $message; public $targetCompany; public function __construct($targetCompany, $message) { $this->targetCompany = $targetCompany; $this->message = $message; } public function broadcastOn() { return ['notifications.company.'.$this->targetCompany->id]; } public function broadcastAs() { return 'notification'; } } AdminNotificationEvent.php 0000644 00000001024 15233463223 0011656 0 ustar 00 <?php namespace App\Events; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; class AdminNotificationEvent implements ShouldBroadcast { use InteractsWithSockets, SerializesModels; public $message; public function __construct($message) { $this->message = $message; } public function broadcastOn() { return ['notifications.admin']; } public function broadcastAs() { return 'notification'; } } NotificationEvent.php 0000644 00000001010 15233463223 0010700 0 ustar 00 <?php namespace App\Events; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; class NotificationEvent implements ShouldBroadcast { use InteractsWithSockets, SerializesModels; public $message; public function __construct($message) { $this->message = $message; } public function broadcastOn() { return ['notifications']; } public function broadcastAs() { return 'admin-event'; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка