Skip to content

Feature ​

File: src/Entities/Feature.php
Namespace: Unusualify\Modularous\Entities
Extends: Illuminate\Database\Eloquent\Model

Stores featured/starred content for bucket-based content curation. Each feature record links a target model to a named bucket with a sort position and an optional starred flag.

Fillable Attributes ​

AttributeTypeDescription
featured_idintFeatured model ID
featured_typestringFeatured model class
positionintSort order within the bucket
bucket_keystringBucket identifier
starredboolWhether the item is starred

Relationships ​

The model being featured.

Scopes ​

scopeForBucket($query, $bucketKey): Collection ​

Returns all featured models for a given bucket key, filtering out null (deleted) relations.

Table ​

Resolved from modularous.features_table, defaults to twill_features.

  • HasBlocks — block editor for featured content