Pan*_*kaj 25 php laravel-5.1 laravel-5.2 laravel-5.3
在Forgot Password中提交请求时,Laravel 5.3.6中的问题.
错误详情
调用未定义的方法Illuminate\Database\Query\Builder :: notify()
问题在以下文件中:
供应商\ laravel \框架的\ src \照亮\身份验证\密码\ PasswordBroker.php
第69行.代码如下
$user->sendPasswordResetNotification(
$this->tokens->create($user)
);
Run Code Online (Sandbox Code Playgroud)
功能:sendResetLink
它在Laravel 5.2中运行良好,似乎不适用于5.3.6版本.你遇到过这个问题吗?
Fra*_*les 11
在用户模式下添加Notifiable trait.
Illuminate\Notifications\Notifiable
在你的app.php中添加:
对于您的提供商:
Illuminate\Notifications\NotificationServiceProvider::class,
在别名中:
'Notification' => Illuminate\Support\Facades\Notification::class,
Nij*_*ara 10
就我而言,在按照其他答案中给出的步骤后,我仍然会收到错误.
BadMethodCallException:调用未定义的方法Illuminate\Database\Query\Builder :: notify()
我失踪了
使用须予公布
...
use Illuminate\Notifications\Notifiable;
class User extends Model
{
use SoftDeletes, Notifiable;
...
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
16609 次 |
最近记录: |