HorusKol

php

Money - and how to handle it

August 2, 2021

The obvious choice for handling money in an application is not the correct one.

Laravel 8 database factories for even better testing

November 12, 2020

A quick look at how Laravel 8's class-based database factories help with simpler tests, and how being lazy can speed up your tests.

Fail validation if a parameter is sent regardless of its value in Laravel

October 31, 2020

A surprisingly simple validation rule that invalidates a request if a specific parameter exists.

Some tips to help speed up Composer install/update

May 27, 2020

Composer taking a while to install/update? It's either time to go and make a coffee, or try these tips to speed it up again.

PHPUnit - name your data sets in your data providers

February 26, 2020

Name the data sets in your data providers to help identify failing tests, and generally make life easier.

Laravel database factories for better testing

February 19, 2020

A quick look at how Laravel's database factories help with simpler tests, and how being lazy can speed up your tests.

Levelling up dependency injection in Laravel

February 5, 2020

Take dependency injection in Laravel controllers to the next level by using interfaces and the service container.

Introduction to dependency injection in Laravel

January 29, 2020

Have Laravel do some of the heavy lifting for you by taking advantage of its DI framework.

Save some keystrokes with this simple trick

January 19, 2020

Fed up prefixing PHP command line scripts with vendor/bin/ ? - have I got the solution for you.

Tagging blog posts in Jigsaw (part 2)

April 9, 2019

Using the Jigsaw lifecycle to generate tag pages automatically.

Tagging blog posts in Jigsaw

April 2, 2019

Some approaches to tagging posts and other things in Jigsaw.

Don't use in-memory SQLite for testing Laravel

November 10, 2018

Don't let in-memory SQLite seduce you.