*/ protected $fillable = [ Feature::ATTRIBUTE_VALUE, ]; /** * The event map for the model. * * Allows for object-based events for native Eloquent events. * * @var class-string[] */ protected $dispatchesEvents = [ 'created' => FeatureCreated::class, 'deleted' => FeatureDeleted::class, 'updated' => FeatureUpdated::class, ]; /** * The table associated with the model. * * @var string */ protected $table = Feature::TABLE; /** * The primary key associated with the table. * * @var string */ protected $primaryKey = Feature::ATTRIBUTE_ID; public function getName(): string { return $this->name; } public function getSubtitle(): string { return $this->scope; } /** * Determine if the feature scope is global. */ public function isNullScope(): bool { return $this->scope === FeatureConstants::NULL_SCOPE; } }