ModelInterface
The Model interface defines required methods for models to work.
interface Winter\Storm\Database\ModelInterface
At the moment, this only restricts the signature for the constructor to only allow attributes as a parameter, in order to allow several static calls to work within the model architecture, but still allow models to extend the constructor if they wish.
Methods
public
__construct (array $attributes = []
)
Create a new model instance.
Property | Type | Description |
---|---|---|
$attributes | array |
array
A list of attributes to populate in the model. |
Implemented by
Class | Description |
---|---|
File
|
File attachment model |
Parameter
|
Parameters model Used for storing internal application parameters. |
Revision
|
Revision history model |
User
|
Administrator user model |
UserGroup
|
Administrator group |
UserPreference
|
All preferences for the backend user |
UserRole
|
Administrator role |
UserThrottle
|
Administrator throttling model |
Group
|
Group model |
Preferences
|
User Preferences model |
Role
|
Role model |
Throttle
|
Throttle model |
User
|
User model |
File
|
File attachment model |
Model
|
Active Record base class. |
DeferredBinding
|
Deferred Binding Model |
Revision
|
Revision Model |
MorphPivot
|
Reimplementation of \Illuminate\Database\Eloquent\Relations\MorphPivot but extends Winter's Pivot base class instead of Laravel's to get access to Winter magic. |
Pivot
|