Skip to content

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 ​

ClassFilePurpose
ModelModel.phpAbstract base — soft-deletes, tagging, caching, presenter, notifications
RevisionRevision.phpAbstract base for revision-tracking models

Auth & User ​

ClassFilePurpose
UserUser.phpAuthenticatable user with roles, OAuth, company, API tokens
UserOauthUserOauth.phpOAuth provider link record for a user
ProfileProfile.phpExtended user profile data
CompanyCompany.phpOrganisation/company record with billing info

Media & Files ​

ClassFilePurpose
FileFile.phpUploaded file record (non-image)
MediaMedia.phpImage record with dimensions, alt text, captions
FilepondFilepond.phpPermanent Filepond upload record (morph relation)
TemporaryFilepondTemporaryFilepond.phpTemporary upload before form submission

Content Building Blocks ​

ClassFilePurpose
BlockBlock.phpContent block with nested children and media
RepeaterRepeater.phpRepeatable content attached via morph relation
TagTag.phpTag record with locale support
TaggedTagged.phpTaggable pivot record

Process & Workflow ​

ClassFilePurpose
ProcessProcess.phpState-machine workflow instance
ProcessHistoryProcessHistory.phpAudit trail of process status changes
AssignmentAssignment.phpTask assignment with status, due date, file attachments
AuthorizationAuthorization.phpAuthorizable relationship pivot
CreatorRecordCreatorRecord.phpTracks who created a model instance

State & Data ​

ClassFilePurpose
StateState.phpTranslatable state definition (e.g. Draft, Active, Closed)
StateableStateable.phpMorph pivot linking a state to a model
SpreadSpread.phpDynamic key-value JSON data attached via morph relation
SettingSetting.phpKey-value settings with translations and images
SingletonSingleton.phpSingle-record model for unique data

Communication ​

ClassFilePurpose
ChatChat.phpChat room attached to a model via morph relation
ChatMessageChatMessage.phpIndividual message with read/pin/star status

Other ​

ClassFilePurpose
FeatureFeature.phpFeatured/starred content for bucket-based curation
RelatedItemRelatedItem.phpMany-to-many polymorphic related content
NestedsetCollectionNestedsetCollection.phpExtended nested-set tree collection