Customer set bool cast for opt_in

This commit is contained in:
Jérémy Munsch 2021-10-26 12:08:37 +02:00
parent c4de30ae7e
commit 7c26772d69
No known key found for this signature in database
GPG key ID: 55196BEE445F6049

View file

@ -17,6 +17,10 @@ class CustomerInfo extends Model
'newcountry' => Country::class
];
protected $casts = [
'opt_in' => 'bool'
];
protected $fillable = [
'firstname',
'lastname',