I have a middleware checkSession
for checking sessions in my Laravel Project. But, while serving the Laravel project using php artisan serve
, the project is served successfully. But, while using the web application, this error is being thrown ReflectionException (-1)
Class checkSession does not exist
I have searched for other answers on SO. But none of them seems to work for my case.
I have also double checked that checkSession class exists in the correct Middleware directory with correct namespace. I am not able to figure why the error is happening. Kindly help.