June 30, 2021
Solve blurry scaled images in Chrome
A very annoying new feature in Chrome in the last couple of months is that CSS scaled images are blurry when loaded. You can fix this by adding this style tag to your images.
June 7, 2021
Set a custom user agent with Laravel's Http Client
You can customize the user agent that Laravel sends with the withUserAgent call. It can often happen that a WAF or other security system will block curl, PHP and Guzzle based requests.
June 1, 2021
Checking a remote hosts SSL expiry date with PHP
This simple function will return the number of days remaining on an SSL certificate, including potentially negative values if it's expired.
May 29, 2021
Prevent Lazy Loading in Laravel
A large majority of poor SQL performance in Laravel can be attributed to lazy loading. Queries that you think execute a single query may execute thousands.
May 25, 2021
Send HTTP requests in parallel with Laravel
A great performance tip for Laravel is the ability to send HTTP requests concurrently. This is especially useful when you are doing things like sending multiple webhooks and similar examples.