Skip to content

Singleton ​

File: src/Entities/Singleton.php
Namespace: Unusualify\Modularous\Entities
Extends: Model

A single-record model for data that should only ever have one row per type. The singleton_type discriminator identifies the kind of singleton, and content stores its payload as JSON.

Fillable Attributes ​

AttributeTypeDescription
idintPrimary key
singleton_typestringType discriminator
contentarraySingleton data (JSON cast)

Table ​

Resolved from modularous.tables.singletons, defaults to modularous_singletons.

  • IsSingular — trait that applies singleton behaviour to a module route