@ -526,7 +526,7 @@ class CourseSignController extends BaseController
return $this->success(['total' => count($records)]);
} catch (\Exception $exception) {
DB::rollBack();
return $this->fail([$exception->getCode(), $exception->getMessage()]);
return $this->fail([$exception->getTrace(), $exception->getMessage()]);
}
@ -18,9 +18,62 @@ class User extends Authenticatable implements Auditable
use \OwenIt\Auditing\Auditable;
use SoftDeletes;
protected $guarded = ['id'];
protected $fillable = [
'remember_token',
'created_at',
'updated_at',
'nickname',
'openid',
'country',
'province',
'city',
'headimgurl',
'username',
'password',
'name',
'sex',
'birthday',
'mobile',
'idcard',
'education',
'company_name',
'company_position',
'company_has_share',
'type',
'company_type',
'company_fund',
'company_area',
'company_address',
'company_industry',
'company_product',
'school',
'speciality',
'overseas_experience',
'sign_from',
'email',
'sales_volume',
'valuation',
'market_value',
'is_yuanhe',
'plate',
'introduce',
'honour',
'company_need_fund',
'company_other',
'remark',
'is_import',
'is_vip',
'is_schoolmate',
'appointment_total',
'letter',
'code',
'score',
'pid',
'company_introduce',
'company_date',
'deleted_at',
'no',
];
protected $appends = ['is_vip_text', 'is_schoolmate_text', 'appointment_total', 'name'];
// 更新时候覆盖更新的字段