HTTP client request without verifying

Sometimes, you may want to send HTTP request without verifying SSL in your local environment, you can do like so:

1return Http::withoutVerifying()->post('https://example.com');

If you want to set multiple options, you can use withOptions.

1return Http::withOptions([
2 'verify' => false,
3 'allow_redirects' => true
4])->post('https://example.com');

Tip given by @raditzfarhan

Like our articles?

Become a Premium Member for $129/year or $29/month
What else you will get:
  • 22 courses (477 lessons, total 38 h 20 min)
  • 2 long-form tutorials (one new every week)
  • access to project repositories
  • access to private Discord