Skip to content

Commit 2c08f89

Browse files
committed
laravel_test_and_seeds_fix: Added casts variable to the Metric model
1 parent 5275b8d commit 2c08f89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

amp-laravel/app/Models/Metric.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class Metric extends Model
1919
'date_month',
2020
];
2121

22+
protected $casts = [
23+
'created_at' => 'datetime',
24+
'updated_at' => 'datetime',
25+
];
26+
2227
public function master()
2328
{
2429
return $this->belongsTo(Master::class);

0 commit comments

Comments
 (0)