deleted event param use array instead of model

This commit is contained in:
xiaomlove
2025-05-16 22:01:12 +07:00
parent 45c41047da
commit 1381390c8c
8 changed files with 47 additions and 31 deletions

View File

@@ -15,16 +15,16 @@ class UserDeleted
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public ?Model $model = null;
public ?array $data = null;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Model $model)
public function __construct(array $data)
{
$this->model = $model;
$this->data = $data;
}
/**