Hyperf
Hyperf
Balmunc
常常因为自己不够优秀而感到恐慌
展开
-
[Hyperf]源码阅读:验证器验证规则
hyperf/validation/src/Concerns/ValidatesAttributes.php原创 2023-09-09 10:23:14 · 176 阅读 · 0 评论 -
[Composer]but these conflict with your requirements or minimum-stability
Composer报错提示:Your requirements could not be resolved to an installable set of packages. Problem 1 - hyperf/validation v2.0.9 requires hyperf/command ~2.0.0 -> satisfiable by hyperf/command[2.0.x-dev, v2.0.0, v2.0.10, v2.0.3, v2.0.5, v2.0.9] but...原创 2020-09-23 17:46:55 · 323 阅读 · 0 评论 -
[Web]This Set-Cookie was blocked because it had the “Secure“ attribute
1、问题重现微信开发者工具无法设置cookie,出现如下报错:This Set-Cookie was blocked because it had the "Secure" attribute but was not received over a secure connection.GoogleChrome无法设置cookie,出现如下报错:This attempt to set a cookie via a Set-Cookie header was blocked bec...原创 2021-10-25 20:42:33 · 2993 阅读 · 0 评论 -
[PhpStorm]PhpStorm 2021.1.3 Enable Hyperf Plugin
原创 2021-12-12 08:20:47 · 394 阅读 · 0 评论 -
[Hyperf]Method Hyperf\Validation\Validator::validate1 does not exist
<?phpnamespace App\Controller;use Hyperf\Di\Annotation\Inject;use Hyperf\HttpServer\Contract\RequestInterface;use Hyperf\Validation\Contract\ValidatorFactoryInterface;class TestController{ /** * @Inject() * @var ValidatorFactoryI.原创 2021-10-10 11:45:48 · 671 阅读 · 0 评论 -
[Hyperf]updateOrInsert:must be of the type bool, object returned
Model类调用updateOrInsert方法没有返回bool值,返回了object,如下图:原创 2021-06-08 14:13:51 · 535 阅读 · 0 评论 -
[Hyperf]Entry “xxxInterface“ cannot be resolved: the class is not instantiable
解决方法:config/autoload/dependencies.php增加xxxInterface配置原创 2021-06-04 18:02:11 · 862 阅读 · 0 评论 -
[Hyperf]to fillable property to allow mass assignment on
相关Model类继承$fillable属性并赋值原创 2021-05-07 20:32:08 · 801 阅读 · 0 评论