medialibrary-helper/tests/workbench/app/Events/MediaDestroyed.php

23 lines
369 B
PHP
Raw Normal View History

2023-03-13 10:17:14 +01:00
<?php
2024-01-03 11:10:59 +01:00
namespace Workbench\App\Events;
2023-03-13 10:17:14 +01:00
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Spatie\MediaLibrary\HasMedia;
class MediaDestroyed
{
use Dispatchable;
use SerializesModels;
public function __construct(public HasMedia $model)
{
}
public function broadcastOn()
{
return [];
}
}