what happens if you copy & paste trait functions into your controller & try to use them? in your trait you are using Auth, do you not have to declare it at the top?
Thanks a lot for your reply!
I have copy pasted the trait functions directly into my controller and then it works perfectly. Looks like there is somethinh wrong with my namespacing but I can't really find out where the problem is.
I am declaring Auth like this: use Illuminate\Support\Facades\Auth; Is that the wrong one?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community