Torann / laravel-geoip

Determine the geographical location of website visitors based on their IP addresses.
http://lyften.com/projects/laravel-geoip
BSD 2-Clause "Simplified" License
2.07k stars 372 forks source link

Laravel 8 cache problem #202

Closed StrangerGithuber closed 3 years ago

StrangerGithuber commented 3 years ago

Hello I did follow the installation process and I got this error:

BadMethodCallException
This cache store does not support tagging.

WHen I am trying to run the php artisan geoip:update command then I get this error:

 BadMethodCallException 

  This cache store does not support tagging.

  at C:\laragon\www\vendor\laravel\framework\src\Illuminate\Cache\Repository.php:483
    479▕      */
    480▕     public function tags($names)
    481▕     {
    482▕         if (! $this->supportsTags()) {
  ➜ 483▕             throw new BadMethodCallException('This cache store does not support tagging.');
    484▕         }
    485▕
    486▕         $cache = $this->store->tags(is_array($names) ? $names : func_get_args());
    487▕

  1   C:\laragon\www\vendor\laravel\framework\src\Illuminate\Cache\CacheManager.php:406
      Illuminate\Cache\Repository::tags()

  2   C:\laragon\www\vendor\torann\geoip\src\Cache.php:32
      Illuminate\Cache\CacheManager::__call("tags")

I just did put this to test from the documentation:

geoip()->getLocation('27.974.399.65');

I am using the laravel version 8.33.1.

StrangerGithuber commented 3 years ago

I did find something about changing the CACHE_DRIVE to array or memcached . It doesn't work with file or database. It seems my file cache will not work.