- 删除控制器的Middleware注解
- laravel db log 改成bootstrap 启动
- remove casbin
- request add params slug
- 去除Casbin的扩展,改成request带上slug的权限
- support herosworker in window
- add expectsJson() and expectJson() method in HttpRequest
- add ErrorCode by https://www.workerman.net/doc/webman/components/generate_error_code.html
- 增加Locker
$lock = Locker::lock("hello", 200); if (!$lock->acquire()) { throw new \Exception('操作太频繁,请稍后再试'); } try { xxxx } catch (\Exception $exception) { Log::error($exception->getMessage()); } finally { $lock->release(); }
- 修复Redis实例化的异常
- 增加JWT的生成生成Token
HttpRequest
支持以下方法- getRemoteIp()
- getRemotePort()
- getLocalIp()
- getLocalPort()
- getRealIp()
- url()
- fullUrl()
- isAjax()
- isPjax()
- only()
- except()
- HttpRequest上传文件支持UploadFile
- 增加
casbin
权限扩展
- 增加
event
事件
- 修复
HttpRequest
的getParameter
获取参数失效。 Enum
增加getMappings
方法
- Redis 支持
phpredis
,predis
不同驱动 - Session如下参数
'auto_update_timestamp' => 'autoUpdateTimestamp',
'cookie_lifetime' => 'cookieLifetime',
'gc_probability' => 'gcProbability',
'cookie_path' => 'cookiePath',
'http_only' => 'httpOnly',
'same_site' => 'sameSite',
'lifetime' => 'lifetime',
'domain' => 'domain',
'secure' => 'secure',
- 修复Vo的继承的问题。
- Redis增加心跳,解决云Redis服务器自动断开链接的问题。