Created
November 15, 2022 15:04
-
-
Save rmcdaniel/f657ae09792a6485982bfaeb412ec739 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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