mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Set default Metric values
This commit is contained in:
parent
a704ecb924
commit
930e0e4bf9
@ -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'];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user