Blog

Articles, notes, and practical lessons

Here I share thoughts, ideas, and experience from building web applications, improving business workflows, and delivering software that holds up over time.

Avoiding unnecessary missing translation warnings when validating in Laravel when using handleMissingKeysUsing

Hey everyone! Today, I want to share a quick tip about Laravel's Lang::handleMissingKeysUsing method. If you haven't heard of it, no worries – it's a neat feature that gets triggered when a translatio...

pushMiddlewareToGroup package development bug in Laravel 10

This is a heads up post about a pushMiddlewareToGroup bug in #laravel package development and how to fix it. While working on one of my packages save last index or show route and redirect back after s...

How I went head to head with GitHub Copilot

Who triumphed in my face-off with GitHub Copilot? In my recent coding adventure, I delved into the #laravel macros and decided to put GitHub Copilot to the test. I wrote my version of a unit test clas...

Testing Complex Queries in Laravel - from repository pattern to Laravel model mocking

Today, we're diving into a discussion on testing complex queries inside a Laravel controller. We'll be looking at two debated topics: the repository pattern and how to mock Laravel eloquent models. Im...