[Vuejs]-Laravel/Sentinel Call to undefined method on route

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().

Leave a comment