-
How to fix the Filament resource list locale switcher
With Filament 4, the locale switcher for translatable resources is broken in the list page. Fix it with one method.Read more » -
Laravel Precognition: Beyond the frontend
Precognitive requests were introduced with Laravel 9 and are useful for keeping your frontend validation logic entirely in the backend. Though designed to be used with JavaScript frameworks, what about in mobile applications?Read more » -
PHP Enums: randomUnique
• php enums laravelIn my test suites I’ll often loop over all of an enum’s ::cases() (ideally using a data provider) when making assertions that rely on them in such a way that all possible combinations are covered.Read more » -
PHP and MySQL: Use the haversine formula to calculate the distance between two co-ordinates
I’m currently building a social media platform where members can find other users based on the distance between them.Read more »