Call the undefined method Illuminate \ Database \ Query \ Builder :: notify () Laravel 5.4

I use Laravel 5.4, getting aboveerror

Call the undefined method Illuminate \ Database \ Query \ Builder :: notify ()

I came to this decision

You must add the Illuminate \ Notifications \ Notifiable attribute in the user model. (link: Calling the undefined method Illuminate \ Database \ Query \ Builder :: notify () )

although it does not work for me

Below mine User modelI did not create a folder for models, its default path

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{

    use Notifiable;         

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password','phone','address','google_id',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];


    public function product()
    {
        return $this->hasMany('App\Product');
    }  
}

while receiving the above error, my current url is http: // localhost: 8000 / password / email

enter image description here

I tried many previous versionssolutions, but still not working?

1: DROPBOX https://www.dropbox.com/s/8jr6ls6xo7flbv8/myproject.zip?dl=0

password reset http://localhost:8000/password/reset ( )

, Adavce!!!

, Adavce!!!

+4
1

?!

User (2).php Category (2).php

- User (2).php, Notify, . , .

.

+2

Source: https://habr.com/ru/post/1681002/


All Articles