Added attributes to prevent bad default data in groups. Closes #1683
This commit is contained in:
@@ -22,6 +22,16 @@ class ComponentGroup extends Model implements HasPresenter
|
||||
{
|
||||
use SearchableTrait, SortableTrait, ValidatingTrait;
|
||||
|
||||
/**
|
||||
* The model's attributes.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $attributes = [
|
||||
'order' => 0,
|
||||
'collapsed' => 0,
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be casted to native types.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user