【问题标题】:Laravel giving Error on Broadcasting notifications, Pusher broadcast errorLaravel 在广播通知上给出错误,Pusher 广播错误
【发布时间】:2018-09-22 11:27:29
【问题描述】:

我没有更改 laravel 通知中的任何代码, 我刚刚更新了我的版本和包

现在我收到以下错误 "{ "message": "类型错误:传递给 Illuminate\Database\Grammar::parameterize() 的参数 1 必须是数组类型,给定整数,在 /home/forge/devapi.creatorshub.online/vendor/laravel 中调用/framework/src/Illuminate/Database/Query/Grammars/Grammar.php 在第 681 行”,“异常”:“Symfony\Component\Debug\Exception\FatalThrowableError”,“文件”:“/home/forge/devapi.creatorshub .online/vendor/laravel/framework/src/Illuminate/Database/Grammar.php", "line": 135, "trace": [ { "file": "/home/forge/devapi.creatorshub.online/vendor/ laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php", "line": 681, "function": "parameterize", "class": "Illuminate\Database\Grammar", "type": " ->" }, { "function": "Illuminate\Database\Query\Grammars{closure}", "class": "Illuminate\Database\Query\Grammars\Grammar", "type": "->" }, { “文件”:“/home/forge/devapi.creatorshub.online/vendor/laravel/framework/src/Illuminate/Support/Collection.php”,“行”:861,“函数”:“array_map”}”

【问题讨论】:

    标签: php laravel-5.4 pusher


    【解决方案1】:

    我遇到了同样的问题。在我的情况下,notifications() 方法已在我的模型中被覆盖。此方法已存在于 trait Notifiable 中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-12
      • 2023-03-10
      • 2021-11-19
      • 2017-12-26
      • 2020-06-17
      • 1970-01-01
      • 2014-05-07
      • 2017-07-04
      相关资源
      最近更新 更多