Call to a member function diffForHumans()on string

自定义 timestamp 字段,报错

创建数据库的时候,加了一个时间的字段

$table->timestamp('last_reply_actived_at')->nullable(

...

Read More...


Method __PHP_Incomplete_Class异常报错

local.ERROR: ReflectionException: Method __PHP_Incomplete_Class::handle() does not exist in /data/w

...

Read More...


unix:///var/run/supervisor.sock no such file

unix:///var/run/supervisor.sock no such file

解决方法

sudo touch /var/run/supervisor.sock
sudo chmod 7
...

Read More...


因为小程序不允许 用navigate 在tab间相互跳转

利用代码打印看一下console就知道..

complete: function (res) {
                consol
...

Read More...


The server quit without updating PID file

The server quit without updating PID file (/data/mysql/mysql.pid).

半夜12点,收到百度短信...说我 一个站 挂了....

...

Read More...


notifynder4 简单翻译了一下文档

安装

使用composer安装

composer require fenos/notifynder:^4.0

配置

config/app.php里添加

'providers' => [
 
...

Read More...


mysql5.7关闭严格模式

更改字段,结果有些默认值 报错...

ERROR 1067 (42000): Invalid default value for 'created_at'

但是在5.6版本里没事...

所以,打算

...

Read More...


laravel的ID加密,但是函数报错php-bcmath安装

打算加密ID,用了一个包,但是报了错

FatalThrowableError in Math.php line 102: Call to undefined function Hashids\bcm

...

Read More...


ReflectionException Class ClassName does not exist

下午进行github登录,结果一直报错..

ReflectionException in Container.php line 719: Class request does not exist

...

Read More...


golang websocket 跨域问题

首先,因为跨域报错

服务器端日志

websocket: 'Origin' header value not allowed

前端报错:

WebSocket connection to 'ws:/

...

Read More...


panic: redis: you open connections too fast

panic: redis: you open connections too fast (last_error="EOF")

redis连接太快?

其实就是次数太多.. 毕竟代

...

Read More...


go 定义复杂的json数据

go 定义复杂的json数据

前端需要一种复杂的json数据

类似于

    {
        "citys":[{
            "name":"哈哈",
               
...

Read More...


当你能力不能满足你的野心的时候,你就该沉下心来学习