*/ protected $fillable = [ Feature::ATTRIBUTE_VALUE, ]; /** * The event map for the model. * * Allows for object-based events for native Eloquent events. * * @var array */ 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; /** * Get name. * * @return string */ public function getName(): string { return $this->name; } /** * Get subtitle. * * @return string */ public function getSubtitle(): string { return $this->scope; } /** * Determine if the feature scope is global. * * @return bool */ public function isNullScope(): bool { return $this->scope === FeatureConstants::NULL_SCOPE; } }