Skip to content

Model Caching gives Class 'Redis' not found when Laravel Scout is importing #367

Closed
@binotm25

Description

@binotm25

Describe the bug
Model caching works fine with phpredis as the client. But when I use Laravel scout to import data to its index it gives Redis not found error. When I disabled the Cachable trait the import works fine.

php artisan scout:import "App\Models"

Stack Trace
Class 'Redis' not found
at vendor/laravel/framework/src/Illuminate/Redis/Connectors/PhpRedisConnector.php:74

Environment

  • PHP: 7.4
  • OS: Ubuntu 20.04
  • Laravel: 7.25.0
  • Model Caching: ^0.10.1

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions