I m using Laravel 5.4
getting the above error
Call to undefined method Illuminate\Database\Query\Builder::notify()
i have came accross this solution
You must add Illuminate\Notifications\Notifiable trait in User model. (link:Call to undefined method Illuminate\Database\Query\Builder::notify())
even though it is not working for me
Below is my User
model
i haven't created any folder for models
its path is default
<?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');
}
}
during getting above error my current url is
http://localhost:8000/password/email
i have tried many previous versions
solution but still does not work?
UPDATE 1: HERE IS MY PROJECT ON DROPBOX https://www.dropbox.com/s/8jr6ls6xo7flbv8/myproject.zip?dl=0
My interest is only password reset
http://localhost:8000/password/reset
(where i'm getting error)
Please Help Me To Get Rid Of This Error Thanks in Adavce!!!
Please Help Me To Get Rid Of This Error Thanks in Adavce!!!