0

When I run php artisan migrate the result is

[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Memcached' not found

Is there anyway to enable this command?

For additional information, I created my project under centos 7 and php 7 version.

Dovydas Šopa
  • 2,282
  • 8
  • 26
  • 34
aditanov
  • 11
  • 2

2 Answers2

2
  1. You are missing memcached on your system
  2. It is not mandatory, if you just want to have the system up and running

Edit your .env file and change your cache driver to file

CACHE_DRIVER=file
Unamata Sanatarai
  • 6,475
  • 3
  • 29
  • 51
0

I was facing same problem with lumen 5.5.2 then found that config/cache.php was missing following code:

 'array' => [
            'driver' => 'array',
        ],

        'file' => [
            'driver' => 'file',
            'path'   => storage_path('framework/cache/data'),
        ],

After adding above code, it works well.

Happy coding

Manish Nakar
  • 4,286
  • 1
  • 18
  • 13