You can just wrap your API call inside a Laravel Cache remember method
$data = Cache::remember('api_data', $minutes, function () {
return API::getData(); // your API call
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community