Laravel5.4
模型已经继承自 model
然后
$datas = Access_token::all()->toJson();
会提示一下错误:
Type error: Argument 1 passed to Illuminate\Database\Eloquent\Model::serializeDate() must implement interface DateTimeInterface, integer given, called in D:\phpStudy\WWW\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php on line 122
百度谷歌无解,请教各位。
模型已经继承自 model
然后
$datas = Access_token::all()->toJson();
会提示一下错误:
Type error: Argument 1 passed to Illuminate\Database\Eloquent\Model::serializeDate() must implement interface DateTimeInterface, integer given, called in D:\phpStudy\WWW\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Concerns\HasAttributes.php on line 122
百度谷歌无解,请教各位。