Blog

My Articles

Here I share my thoughts, ideas, and experiences.
I write about PHP & Laravel and other web development topics in general.

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...


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....


How to test then batch method in Laravel

In this blog post, we'll explore how to test Laravel jobs, specifically focusing on asserting that a batch of jobs has been dispatched and testing that a then method is called when all...


Better Ways to Test Repeated Laravel Jobs

In this article, we'll explore two improved methods to make testing same class dispatched Laravel jobs a breeze. While the standard way gets the job done, it's like searching for a needle in a...

My Work Featured on Laravel News