first commit

This commit is contained in:
2026-04-15 20:16:52 +08:00
commit 8f45044411
1172 changed files with 329978 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace App\Events;
use App\Models\GoodsGroup;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class GoodsGroupDeleted
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $goodsGroup;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(GoodsGroup $goodsGroup)
{
$this->goodsGroup = $goodsGroup;
}
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
*/
public function broadcastOn()
{
return new PrivateChannel('channel-name');
}
}