Entities ​
Namespace: Unusualify\Modularous\Entities
Location: src/Entities/
All Eloquent models in the Modularous package. Module-generated models extend Model and gain soft-deletes, tagging, caching, presenter support, and trait composition out of the box.
Base Classes ​
| Class | File | Purpose |
|---|---|---|
| Model | Model.php | Abstract base — soft-deletes, tagging, caching, presenter, notifications |
| Revision | Revision.php | Abstract base for revision-tracking models |
Auth & User ​
| Class | File | Purpose |
|---|---|---|
| User | User.php | Authenticatable user with roles, OAuth, company, API tokens |
| UserOauth | UserOauth.php | OAuth provider link record for a user |
| Profile | Profile.php | Extended user profile data |
| Company | Company.php | Organisation/company record with billing info |
Media & Files ​
| Class | File | Purpose |
|---|---|---|
| File | File.php | Uploaded file record (non-image) |
| Media | Media.php | Image record with dimensions, alt text, captions |
| Filepond | Filepond.php | Permanent Filepond upload record (morph relation) |
| TemporaryFilepond | TemporaryFilepond.php | Temporary upload before form submission |
Content Building Blocks ​
| Class | File | Purpose |
|---|---|---|
| Block | Block.php | Content block with nested children and media |
| Repeater | Repeater.php | Repeatable content attached via morph relation |
| Tag | Tag.php | Tag record with locale support |
| Tagged | Tagged.php | Taggable pivot record |
Process & Workflow ​
| Class | File | Purpose |
|---|---|---|
| Process | Process.php | State-machine workflow instance |
| ProcessHistory | ProcessHistory.php | Audit trail of process status changes |
| Assignment | Assignment.php | Task assignment with status, due date, file attachments |
| Authorization | Authorization.php | Authorizable relationship pivot |
| CreatorRecord | CreatorRecord.php | Tracks who created a model instance |
State & Data ​
| Class | File | Purpose |
|---|---|---|
| State | State.php | Translatable state definition (e.g. Draft, Active, Closed) |
| Stateable | Stateable.php | Morph pivot linking a state to a model |
| Spread | Spread.php | Dynamic key-value JSON data attached via morph relation |
| Setting | Setting.php | Key-value settings with translations and images |
| Singleton | Singleton.php | Single-record model for unique data |
Communication ​
| Class | File | Purpose |
|---|---|---|
| Chat | Chat.php | Chat room attached to a model via morph relation |
| ChatMessage | ChatMessage.php | Individual message with read/pin/star status |
Other ​
| Class | File | Purpose |
|---|---|---|
| Feature | Feature.php | Featured/starred content for bucket-based curation |
| RelatedItem | RelatedItem.php | Many-to-many polymorphic related content |
| NestedsetCollection | NestedsetCollection.php | Extended nested-set tree collection |