'dec', self::MATCH_TYPE_HEX => 'hex', ]; protected static function booted() { static::created(function ($model) { fire_event(ModelEventEnum::AGENT_ALLOW_CREATED, $model); }); static::updated(function ($model) { fire_event(ModelEventEnum::AGENT_ALLOW_UPDATED, $model); }); static::deleted(function ($model) { fire_event(ModelEventEnum::AGENT_ALLOW_DELETED, $model); }); } public function denies(): \Illuminate\Database\Eloquent\Relations\HasMany { return $this->hasMany(AgentDeny::class, 'family_id'); } }