Did you also change the name of filter in your route before
filter?
zaalbarxx said:
Did you also change the name of filter in your route
before
filter?
yes,
I have two ideas, but I doubt they will work.
Auth::user()->id;
or even better
Auth::id();
Second one, before trying to access the Auth::user(), make sure the person is logged in with Auth::check(). If the person is not logged in, you will get that error.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community