diff --git a/src/Models/Component.php b/src/Models/Component.php index 2c2ba8ed..2af21afa 100644 --- a/src/Models/Component.php +++ b/src/Models/Component.php @@ -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. *