laravel http retry

50

laravel http retry -

use Illuminate\Support\Facades\Http;
// The retry method accepts two arguments:
// (1st) the maximum number of times the request should be attempted
// (2nd) the number of milliseconds that Laravel should wait in between attempts:
$response = Http::retry(3, 100)->post(...);

Comments

Submit
0 Comments