Class "Redis" not found
mohammad-azzam-dev opened this issue · 2 comments
mohammad-azzam-dev commented
After implementing all of the steps this error is occurring
Class "Redis" not found, and it referencing it on this class:E:\projects\Laravel_projects\geopackadge\vendor\laravel\framework\src\Illuminate\Redis\Connectors\PhpRedisConnector.php : 32
on this line: return new PhpRedisConnection($connector(), $connector, $config);
mohammad-azzam-dev commented
sorry I did not add also I added this in the controller that I made:
public function test(){
return app('geocoder')->geocode('Los Angeles, CA')->get();
}
and called it from a route
mikebronner commented
To use a redis cache, you will also need to install a Redis driver:
https://laravel.com/docs/9.x/cache#driver-prerequisites
Please let me know if that resolves your issue.