Set default Metric values

This commit is contained in:
James Brooks 2015-02-23 08:27:43 +00:00
parent a704ecb924
commit 930e0e4bf9
3 changed files with 5 additions and 3 deletions

View File

@ -57,7 +57,7 @@ class Component extends Model implements TransformableInterface
/**
* List of attributes that have default values.
*
* @var array
* @var mixed[]
*/
protected $attributes = [
'order' => 0,

View File

@ -24,10 +24,12 @@ class Metric extends Model implements TransformableInterface
/**
* The model's attributes.
*
* @var array
* @var string[]
*/
protected $attributes = [
'name' => '',
'default_value' => 0,
'display_chart' => 1,
];
/**

View File

@ -19,7 +19,7 @@ class MetricPoint extends Model
/**
* The attributes that are mass assignable.
*
* @var array
* @var string[]
*/
protected $fillable = ['metric_id', 'value'];