laravel with 加条件查询

laravel with 加条件查询可以这样写 $qwith(['user' = function ($q) use ($nickname) { $qwhere('nickname', $nickname); }]);
阅读全文

WebSocket connection to ws://xxxxx:8501/ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

  • 六月七
  • 2022-03-03 21:14:42
  • php
  • php
WebSocket connection to ws://xxxxx:8501/ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
阅读全文

php 字符串前补0

  • 六月七
  • 2022-03-03 21:11:18
  • php
  • php
php 字符串前补0
阅读全文

strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

  • 六月七
  • 2022-03-03 21:06:23
  • php
  • php
strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
阅读全文

laravel 字段设置为空

laravel 框架 数据迁移时,有些字段要设置为空的可以这样 $table->timestamp('email_verified_at')->nullable();如果是已经存在了该表的话,要改变字段的可以这样 $table->string('remark')->nullable()->change();
阅读全文

ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?"

ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct?" 报这个错可能原因是redis 没有设置密码,设置好密码就可以了,如果不行,试下重启redis
阅读全文