diff --git a/app/Models/Entity.php b/app/Models/Entity.php index 0ed5a2e..d0b3d3c 100644 --- a/app/Models/Entity.php +++ b/app/Models/Entity.php @@ -3,8 +3,6 @@ namespace App\Models; use App\Enums\EntityType; -use App\Events\CreateEntity; -use App\Events\UpdateEntity; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; @@ -92,10 +90,4 @@ public function scopeSearch($query, ?string $search = null) ->orWhere('description_en', 'like', "%$search%") ->orWhere('description_cs', 'like', "%$search%"); } - - protected $dispatchesEvents = [ - 'created' => CreateEntity::class, - 'updated' => UpdateEntity::class, - - ]; }