geocoder-php/GeocoderLaravel

Class "Redis" not found

mohammad-azzam-dev opened this issue · 2 comments

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);

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

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.