I created a middleware in version 5.3 and registered it. But I have the following error:
ErrorException in VerifyCsrfToken.php line 136: Trying to get property of non-object
The code: http://pastebin.com/eKufj4Q4
Your middleware doesn't return a response object. The previous middleware in the stack, the one this returns to, is expecting a response object.
Middleware - request goes in, response goes out.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community