
常见报错、问题
张一丁
码农一枚 喜欢结交各路英雄好汉!欢迎加好友。欢迎拍砖、提意见
展开
-
laravel常见报错总结
Call to a member function insertAndGetId() on null :model不存在。原创 2018-06-27 16:46:14 · 984 阅读 · 0 评论 -
mysql问题 报错
[MySQL] specified key was too long max key length is 767bytes 编码utf8mb4.我的没问题,同事的有问题。百度说索引长度过长。应该是mysql版本不一致。我的是5.7.22.表结构:CREATE TABLE `mini_model_has_permissions` ( `permission_id` int(10) un...原创 2018-10-30 10:37:10 · 237 阅读 · 0 评论 -
laravle 报错
Add [coupon_num] to fillable property to allow mass assignment on [App\\Users]原创 2018-11-27 11:03:01 · 329 阅读 · 0 评论 -
php报错
出现报错:A non-numeric value encountered原创 2018-11-27 19:39:38 · 150 阅读 · 0 评论 -
laravel项目 报错:Please provide a valid cache path
在storege->framework 下,新建三个文件夹:views、cache、sessons,并给与权限。原创 2019-01-20 03:15:13 · 1712 阅读 · 0 评论 -
ype error: Argument 1 passed to Illuminate\Routing\Middleware\ThrottleRequests::addHeaders() must be
中间件中不能用json_encode使用 return response()->json(array('code' => ErrorCode::NOT_LOGIN, 'msg' => ErrorMsg::$errorMsg[ErrorCode::NOT_LOGIN])); 就好了。原创 2019-01-21 01:33:15 · 5218 阅读 · 1 评论