Added attributes to prevent bad default data in groups. Closes #1683

This commit is contained in:
James Brooks
2016-04-16 12:19:16 +01:00
parent 4f867dabe6
commit 6e7df6e1f7

View File

@@ -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.
*