Laravel Lumen Memcached not found Laravel Lumen Memcached not found laravel laravel

Laravel Lumen Memcached not found


I spent 3 hours on this problem today. With the help of the post of demve in this topic, I found the solution. Very simple! I hope it won't affect me later in my development.

Just to it, in the .env file :

CACHE_DRIVER=arraySESSION_DRIVER=arrayQUEUE_DRIVER=array

Ok, I make an UPDATE because I was faced with a new problem about the session. In fact, when you set the previous parameters, your session won't be persistent, like said in the documentation: array - sessions will be stored in a simple PHP array and will not be persisted across requests.

So I have to change it, always in .env a file like that :

SESSION_DRIVER=cookie

With a var_dump(Session::all()); I now can see the whole values of my session


You may need to restart your server, especially if you're using php artisan serve.

Lumen doesn't appear to pick up .env changes per-request.

I had exactly the same issue - trying to use file cache, but received errors regarding Memcached - restarting the server reloads the .env file.


This issue resolved when i installed this package so try at least

First i tried this and it works fine

CACHE_DRIVER = array 

but then thought about what is memcached

Then i tried this and it works fine without changing driver memcached

apt-get install php-memcached 

yum package manager or in Amazon Linux.

yum install php-memcached -y