Skip to content

Commit e700c62

Browse files
authored
Fix menubar not ready (#453)
* fix: menubar not ready * fix: menubar not ready * feat: new menubar event * Revert "fix: menubar not ready" This reverts commit 4c89091. * Revert "fix: menubar not ready" This reverts commit 345b37a.
1 parent 4ec5c58 commit e700c62

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Events/MenuBar/MenuBarCreated.php

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace Native\Laravel\Events\MenuBar;
4+
5+
use Illuminate\Broadcasting\Channel;
6+
use Illuminate\Broadcasting\InteractsWithSockets;
7+
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
8+
use Illuminate\Foundation\Events\Dispatchable;
9+
use Illuminate\Queue\SerializesModels;
10+
11+
class MenuBarCreated implements ShouldBroadcastNow
12+
{
13+
use Dispatchable, InteractsWithSockets, SerializesModels;
14+
15+
public function broadcastOn()
16+
{
17+
return [
18+
new Channel('nativephp'),
19+
];
20+
}
21+
}

0 commit comments

Comments
 (0)