N
N
Nubbb2021-02-12 15:48:42
Laravel
Nubbb, 2021-02-12 15:48:42

How to resolve this GeoIP error in Laravel?

delivered two packages

"geoip2/geoip2": "^2.11",
"torann/geoip": "^3.0",

in the controller I call

<?php
namespace App\Http\Controllers\Api\V1\GeoIp;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Torann\GeoIP\Facades\GeoIP;

class GeoController extends Controller
{
    public function index()
    {
        return response()->json(geoip());
    }
}

but gives out
This cache store does not support tagging.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2021-02-12
@Nubbb

Change the cache type in the config, file and database do not support tagging.
You can put a radish / memcache or just an array if the cache is not used at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question