Laravel auto casts the id column to int for us
This commit is contained in:
@@ -54,7 +54,6 @@ class Metric extends Model implements HasPresenter
|
||||
* @var string[]
|
||||
*/
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'name' => 'string',
|
||||
'display_chart' => 'bool',
|
||||
'default_value' => 'int',
|
||||
|
||||
Reference in New Issue
Block a user