|
@@ -0,0 +1,25 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace App\Models;
|
|
|
+
|
|
|
+use Illuminate\Database\Eloquent\Model;
|
|
|
+
|
|
|
+class VCoachInfo extends Model
|
|
|
+{
|
|
|
+ protected $table = 'v_coach_info';
|
|
|
+
|
|
|
+ public $timestamps = false;
|
|
|
+
|
|
|
+ protected $guarded = [];
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 应该被转换成原生类型的属性
|
|
|
+ *
|
|
|
+ * @var array
|
|
|
+ */
|
|
|
+ protected $casts = [
|
|
|
+ 'life_photos' => 'array',
|
|
|
+ 'portrait_images' => 'array',
|
|
|
+ 'id_card_images' => 'array',
|
|
|
+ ];
|
|
|
+}
|