geocoder-php / GeocoderLaravel

Geocoder service provider for Laravel
http://geocoder-php.org/GeocoderLaravel/
MIT License
704 stars 102 forks source link

Class "Redis" not found #190

Open mohammad-azzam-dev opened 2 years ago

mohammad-azzam-dev commented 2 years ago

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 2 years ago

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 2 years ago

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.