Entities ​
Modularous entities (models) use traits for feature composition. All models extend Unusualify\Modularous\Entities\Model.
For detailed documentation on each model, see the Entities reference.
Base Classes ​
| Class | Purpose |
|---|---|
| Model | Base Eloquent model — soft-deletes, tagging, caching, presenter |
| Revision | Abstract base for revision-tracking models |
| Singleton | Singleton pattern for single-record models |
Core Models ​
| Model | Purpose |
|---|---|
| User | Authenticatable user with roles, OAuth, API tokens |
| UserOauth | OAuth provider link record |
| Profile | Extended user profile data |
| Company | Organisation/company record with billing info |
| File | Uploaded file record (non-image) |
| Media | Image record with dimensions, alt text, captions |
| Filepond | Permanent Filepond upload record |
| TemporaryFilepond | Temporary upload before form submission |
| Block | Content block with nested children |
| Repeater | Repeatable content via morph relation |
| Tag | Tag with locale support |
| Tagged | Taggable pivot record |
| Process | State-machine workflow instance |
| ProcessHistory | Process status change audit trail |
| Assignment | Task assignment with status and due dates |
| Authorization | Authorizable relationship pivot |
| CreatorRecord | Creator tracking record |
| State | Translatable state definition |
| Stateable | Morph pivot linking state to model |
| Spread | Dynamic JSON data via morph relation |
| Setting | Key-value settings with translations |
| Chat | Chat room attached via morph relation |
| ChatMessage | Individual chat message |
| Feature | Featured/starred content for buckets |
| RelatedItem | Polymorphic related content pivot |
| NestedsetCollection | Extended nested-set tree collection |
Entity Traits ​
Core ​
| Trait | Purpose |
|---|---|
| HasCaching | Cache support |
| HasCacheDependents | Cache invalidation |
| HasCompany | Company scoping |
| HasScopes | Query scopes |
| ChangeRelationships | Relationship helpers |
| LocaleTags | Locale tag casting |
| ModelHelpers | General helpers |
Auth ​
| Trait | Purpose |
|---|---|
| HasOauth | OAuth integration |
| CanRegister | Registration support |
Features ​
| Trait | Purpose |
|---|---|
| HasImages | Image/media relationship |
| HasFiles | File relationship |
| HasFileponds | Filepond relationship |
| HasSlug | Slug generation |
| HasStateable | State workflow |
| HasPriceable | Pricing |
| HasPayment | Payment integration |
| HasPosition | Ordering |
| HasPresenter | Presenter pattern |
| HasCreator | Creator tracking |
| HasRepeaters | Repeater fields |
| HasProcesses | Process workflow |
| HasSpreadable | Spread feature |
| HasUuid | UUID primary key |
| HasTranslation | Translation |
| IsTranslatable | Translatable model |
| IsSingular | Singleton behavior |
| IsHostable | Multi-tenant |
| HasAuthorizable | Authorization |
Other ​
| Trait | Purpose |
|---|---|
| Assignable | Assignment target |
| Chatable | Chat support |
| Processable | Process participant |
| HasBlocks | Block content |
| HasNesting | Nested structure |
| HasRelated | Related items |
| HasRevisions | Revision history |
Enums ​
| Enum | Purpose |
|---|---|
| Permission | Permission types |
| UserRole | User roles |
| RoleTeam | Role team (Cms, Crm, Erp) |
| ProcessStatus | Process workflow status |
| PaymentStatus | Payment status |
| AssignmentStatus | Assignment status |
Scopes ​
StateableScopes, SingularScope, ProcessableScopes, ProcessScopes, ChatableScopes, ChatMessageScopes, AssignmentScopes, AssignableScopes