Laravel Pro Tips
#http
Finding out the total time taken by #HTTP Client Request in #Laravel
Aniket Magadum
#http #guzzle
Need to know the transfer time of a HTTP post in #Laravel or Guzzle? Use this method to get that info!
Braunson Yager
#http #macros
๐ก You can define HTTP macro to configure common request paths and headers when interacting with services throughout your application. #laravel #laravelphp #laraveltips #laraveltricks #laravelupdates #laravelfeatures
Laravel Updates | Tips and Tricks
#http #cheatsheet
๐ A #laravel HTTP Client #CheatSheet โก๏ธSome of the methods you can use before you send your request ๐ฅ
Aaron Lumsden ๐ | Indie Hacker Dev
#http #api
๐ฅ #Laravel Tip: When communicating with third-party APIs via Laravel's HTTP client, consider adding a user agent that identifies your app. That way, if there's a problem, the API owner can identify you (via their HTTP logs) and contact you (instead of blocking you).
Matt Kingshott
#requests #http
Laravel Tip ๐ก Use Laravel's retry helper when dealing with an unstable API. For example, retry a request three times and wait one second between every retry.
Philo Hermans
#responses #cache #http
Handling HTTP caching is a little tricky in #Laravel because it's can be a two-step process (eg. on pages that need to make lots of external API/database calls). Here's a basic example. I've got another package in the works that will make it much easier! https://t.co/tuuwtNH3IL
Chris #BlackLivesMatter
#http #authorization
๐ฅ I keep finding these sweet conveniences in Laravelโs HTTP client. For instance, thereโs a `withToken` method to attach the `Authorization` header to a request. So much nice than having to add it manually. ๐ฅฐ
Kai Sassnowski ๐ฅ
#requests #http #dd #dump
๐If you're making an HTTP request in Laravel, you can dump the request. This can be really useful for debugging when making API calls from your application. #laravel #php
Ash Allen ๐
May 3rd, 2022
#directives #http #datetime #factories #booleans
20 Useful Laravel Tips
Read 20 useful tips that you can use in your Laravel projects. These tips have been built using my best-performing tweets on Twitter and cover databases, standards, testing, Artisan commands, and much more.