发送实现ShouldQueue的通知时出错

时间:2019-02-22 05:26:12

标签: laravel

我收到此错误:

`Symfony\Component\Debug\Exception\FatalThrowableError: Argument 3 passed to Illuminate\Contracts\Database\ModelIdentifier::__construct() must be of the type array, null given, called in /var/www/html/camelot-v2/vendor/laravel/framework/src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php on line 34
  File "app/Http/Controllers/advLogin.php", line 77, in login_step1
    Notification::send($user, new AccountActivationNotification($url, $user));
  File "public/index.php", line 55, in require_once
    $request = Illuminate\Http\Request::capture()
  File "server.php", line 21
    require_once __DIR__.'/public/index.php';`

从Laravel 5.6升级到Laravel 5.7后。我的通知实现了ShouldQueue。 如果删除机具ShouldQueue,该错误将消失。请帮助。

0 个答案:

没有答案