Apply default attributes on Component. Closes #291
This commit is contained in:
@@ -55,6 +55,16 @@ class Component extends Model implements TransformableInterface
|
||||
'group_id',
|
||||
];
|
||||
|
||||
/**
|
||||
* List of attributes that have default values.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $attributes = [
|
||||
'order' => 0,
|
||||
'group_id' => 0,
|
||||
];
|
||||
|
||||
/**
|
||||
* Components can belong to a group.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user