Creating a Custom Tooltip Component with Tailwind CSS (without JavaScript)

Creating the Tooltip Component Let’s start by defining the tooltip Blade component using Tailwind CSS classes. Here’s the code for the tooltip component: //...

PHP Storm and Laravel Pint

If you want Laravel Pint to reformat your PHP code automatically when you save your file in PhpStorm, you can set it up as a file watcher and run it...

Testing PHP SoapClient

When working with PHP’s soap client, it can be useful to see the actual XML that is being sent to and received from the remote web service. By default, the...

Using image format webp in 2023

WebP is an image format developed by Google that provides efficient compression of digital images while maintaining high quality. It uses both lossless and lossy compression techniques and is designed...

Eloquent, order by relationship and eager loading

This question comes up now and again. How to order a query results on a one-to-one relationship in Eloquent. Since with() is creating another query Eloquent does not know...