0👍
The error is that it’s trying to call notification
on a Illuminate\Database\Query\Builder
object.
This leads me to believe that Auth::getUser()
is actually returning a Builder
object and not your actual User model.
I would try tacking on ->get()
to $user = Auth::getUser()->get()
.
- [Vuejs]-VueJS & Firebase – How to validate someone's password
- [Vuejs]-Vue cli -> npm run dev stopped working after system recovery on windows 7
Source:stackexchange.com