From 7c26772d6977a266fabc608c1e3cd3fd0002b0cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 26 Oct 2021 12:08:37 +0200 Subject: [PATCH] Customer set bool cast for opt_in --- app/Models/CustomerInfo.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Models/CustomerInfo.php b/app/Models/CustomerInfo.php index 829b680..3da4e03 100644 --- a/app/Models/CustomerInfo.php +++ b/app/Models/CustomerInfo.php @@ -17,6 +17,10 @@ class CustomerInfo extends Model 'newcountry' => Country::class ]; + protected $casts = [ + 'opt_in' => 'bool' + ]; + protected $fillable = [ 'firstname', 'lastname',