Set default Metric values
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,7 @@ class MetricPoint extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
* @var string[]
|
||||
*/
|
||||
protected $fillable = ['metric_id', 'value'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user