diff --git a/app/Models/Blacklist.php b/app/Models/Blacklist.php index d07e29a..d9c42c3 100644 --- a/app/Models/Blacklist.php +++ b/app/Models/Blacklist.php @@ -8,7 +8,7 @@ class Blacklist extends SoftDeletesModel protected $appends = ['file_detail']; protected $casts = [ - 'file'=>'array' + 'file'=>'json' ]; public function getFileDetailAttribute() diff --git a/app/Models/GateLog.php b/app/Models/GateLog.php index a40393c..789d02d 100644 --- a/app/Models/GateLog.php +++ b/app/Models/GateLog.php @@ -7,8 +7,8 @@ class GateLog extends CommonModel protected $guarded = ['id']; protected $casts = [ - 'person_no' => 'array', - 'car_no' => 'array' + 'person_no' => 'json', + 'car_no' => 'json' ]; public static function add($admin_id, $code, $person_no, $car_no, $remark = '') diff --git a/app/Models/Study.php b/app/Models/Study.php index 86fdf41..df21bbb 100644 --- a/app/Models/Study.php +++ b/app/Models/Study.php @@ -7,7 +7,7 @@ class Study extends SoftDeletesModel protected $guarded = ['id']; protected $casts = [ - 'file' => 'array' + 'file' => 'json' ]; protected $appends = ['file_detail']; diff --git a/app/Models/Visit.php b/app/Models/Visit.php index ce992f0..40fa81f 100644 --- a/app/Models/Visit.php +++ b/app/Models/Visit.php @@ -11,11 +11,11 @@ class Visit extends SoftDeletesModel protected $appends = ['type_text', 'audit_status_text', 'file_detail']; protected $casts = [ - 'follw_people' => 'array', - 'cars' => 'array', - 'file' => 'array', - 'person_no' => 'array', - 'car_no' => 'array' + 'follw_people' => 'json', + 'cars' => 'json', + 'file' => 'json', + 'person_no' => 'json', + 'car_no' => 'json' ]; public function getFileDetailAttribute() diff --git a/app/Models/VisitArea.php b/app/Models/VisitArea.php index 8594ec2..fdc4c29 100644 --- a/app/Models/VisitArea.php +++ b/app/Models/VisitArea.php @@ -7,6 +7,6 @@ class VisitArea extends SoftDeletesModel protected $guarded = ['id']; protected $casts = [ - 'audit_admin' => 'array' + 'audit_admin' => 'json' ]; }