Support the ongoing development of Laravel.io →
Configuration Cache Database

In a Lumen application, I need to work with more databases. So, according to documentation, I have created the "config" directory in my root and I have copied the database.php from /vendor/laravel/lumen-framework/config/database.php so I can define an array with all my databases (like in laravel). The problem is that when I run my application, I get this error:

PHP Fatal error: Class 'Memcached' not found in ..../vendor/illuminate/cache/MemcachedConnector.php on line 52

I don't understand what say to my app to use Memcached... in "config" directory I have also copied cache.php, setting the default param as well:

'default' => env('CACHE_DRIVER', 'array')

although for now I don't need to use cache...

How can I solve? Thanks

Last updated 3 years ago.

saif liked this thread

1

Sign in to participate in this thread!

Eventy

Your banner here too?

matiux matiux Joined 28 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.