Recently, I’ve been playing around with InertiaJS, “The Modern Monolith”. In a nutshell, it helps you write Laravel apps as single page applications without the hassle. You can keep using your controllers and routing system while enjoying a super snappy frontend. I have been using it in combination with React, and it has been a […]
Background jobs in Laravel are a powerful feature that I tend to use a lot. Ten years ago, that would have sounded impossible. But Laravel makes is so easy. From external API calls to sending emails, importing files… By delegating long processes to a side runner, it helps smoothing the user experience. Laravel 5.7 added […]
PHP 7.0 introduced great additions to it’s object model: type declarations and return type declarations. I use these features extensively and could never look back. It makes PHP code much more readable, and much more predictable. There is still one gray area in PHP’s object model: typed properties. While we wait patiently for PHP 7.4 […]
Basecamp’s outage in November 2018 made me realize that it might be a good idea to start using big integers instead of regular integers for unique identifiers in MySQL (auto-increments and relationship references). Here is a migration to automatically change all your IDs from regular integer size to big integer: Don’t forget to add any […]
When you intend to write clean, expressive code, you’d rather avoid cluttering your codebase with clumsy conditionals.