Have you ran a composer autoload?
composer dump-autoload -o
I generally find if im adding in new classes best to run the above to make sure they are in the autoload file.
Regards -Darkninja462
I have read most if not all the topics related to Lumen and Redis in this forum and Google, and I have not managed to get Lumen working with Redis.
This is what I have done:
I added the following lines to bootstrap/app $app->withFacades(); $app->register(Illuminate\Redis\RedisServiceProvider::class);
I installed redis and predis via Composer, important part of the composer.json: "require": { "php": ">=5.5.9", "laravel/lumen-framework": "5.2.*", "vlucas/phpdotenv": "~2.2", "illuminate/redis":"^5.2", "predis/predis": "^1.1" },
I try to use Redis via a following command (works with Laravel, although I know they are different): Redis::get('serverTimeLoop');
And I get the following error: [2016-06-22 15:59:01] lumen.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Redis' not found' in /var/www/api/app/Classes/ServerTimeClass.php:31 Stack trace: #0 /var/www/api/vendor/laravel/lumen-framework/src/Concerns/RegistersExceptionHandlers.php(55): Laravel\Lumen\Application->handleShutdown() #1 [internal function]: Laravel\Lumen\Application->Laravel\Lumen\Concerns{closure}() #2 {main}
I am not sure how to fix it, can someone point me to the right direction?
Please or to participate in this conversation.