Apply default attributes on Component. Closes #291

This commit is contained in:
James Brooks
2015-01-05 23:00:41 +00:00
parent 248c0fdece
commit 751ba687d7

View File

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