Skip to content

Instantly share code, notes, and snippets.

@rmcdaniel
Created November 15, 2022 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmcdaniel/f657ae09792a6485982bfaeb412ec739 to your computer and use it in GitHub Desktop.
Save rmcdaniel/f657ae09792a6485982bfaeb412ec739 to your computer and use it in GitHub Desktop.
<?php
namespace App\Workflows\InvalidateCache;
use Illuminate\Support\Facades\Http;
use Workflow\Activity;
class CheckImageDateActivity extends Activity
{
public function execute($url)
{
return Http::head('https://' . config('services.cloudimage.token') . '.cloudimg.io/' . $url)
->header('date');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment