Middleware not working
I'm having an issue with some middlewear I'm trying to add into my system, but it looks like the middelwear is not even being used.
I created a EnsureTrialNotExpired middlewear, and inside that middlewear I've just added a DD or a log to see any output and its not showing anything.
Just navigates to the panel as intended if the middlewear wasn't there.
Company Panel
Middlewear
Not sure if I'm missing something here, also would this work to do a check for auth()->user().
I have also tried adding it into
But also still no luck
Any help would be great as I'm ripping my hair out 🤣
3 Replies