How did you disable cache in app.php?
In your .env file you probably set your CACHE_DRIVER to something you didn't set up. Just set it to CACHE_DRIVER=file if you will not be using any caching mechanism.
Trying to access POST endpoint to add a user to a table in API when validation fails and Lumen seemingly attempts to create a Session and use cache, when they have been commented out in app.php. What follows is the relevant error dump...
InvalidArgumentException in CacheManager.php line 90:
Cache store [apc] is not defined.
in CacheManager.php line 90
at CacheManager->resolve('apc') in CacheManager.php line 77
at CacheManager->get('apc') in CacheManager.php line 55
at CacheManager->store('apc') in CacheManager.php line 66
at CacheManager->driver('apc') in SessionManager.php line 155
at SessionManager->createCacheHandler('apc') in SessionManager.php line 143
at SessionManager->createCacheBased('apc') in SessionManager.php line 98
at SessionManager->createApcDriver() in Manager.php line 87
at Manager->createDriver('apc') in Manager.php line 63
at Manager->driver() in Manager.php line 137
at Manager->__call('previousUrl', array()) in ValidatesRequests.php line 79
at SessionManager->previousUrl() in ValidatesRequests.php line 79
at Controller->getRedirectUrl() in ValidatesRequests.php line 56
at Controller->buildFailedValidationResponse(object(R
Is anyone able to tell me why Sessions and caching are being activate and how to fix this problem?
Oh I am sorry, didn't get ya there. It's explained in the docs - http://lumen.laravel.com/docs/cache#configuration - on how to use redis, memcached and database.
Although the file part is left out. It is mentioned in the Laravel docs: http://laravel.com/docs/5.1/cache#configuration
I think the default option here should be file, but for whatever reason it's set to memcached. No idea why.
Everything seems ok. Try using dd() before doing anything else in the controller and see what happens or debugging a little :)
Please or to participate in this conversation.