Browse Source

cast data type

pull/3/head
Muhammad Sulaiman Yusuf 3 years ago
parent
commit
4e644e5175
  1. 6
      app/Models/RequestMaterial.php

6
app/Models/RequestMaterial.php

@ -11,6 +11,12 @@ class RequestMaterial extends Model
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
protected $casts = [
'id' => 'integer',
'price' => 'float',
'qty' => 'float',
];
protected $fillable = [
'description',
'required_date',

Loading…
Cancel
Save