We use cookies on this site to enhance your user experience

By clicking the Accept button, you agree to us doing so. More info on our cookie policy

Blog

Welcome to my blog, where I post tips and tutorials about PHP, Laravel, JavaScript and Web Development

Using GitHub Dependabot with a Monorepo

Using GitHub Dependabot with a Monorepo

Published: Mar 3, 2022

GitHub offers a dependabot service that can let you know of any potential security issues with your dependencies and automatically create a Pull Request for you. This works great without...

What should I test?

What should I test?

Published: Dec 18, 2021

You might often hear developers say that you should write tests. Great, let’s go! But what should you test and where do you start? I don’t know all the answers,...

Creating multi-worksheet Excel files with Simple Excel

Creating multi-worksheet Excel files with Simple Excel

Published: Oct 13, 2021

Recently I had to create a large data export for a project. I like using Spatie’s Simple Excel package to do this as it is very simple to use and...

The PHP foreach loop

The PHP foreach loop

Published: Oct 9, 2021

An alternative to the for loop, the foreach loop is used to iterate or loop over an array. The foreach loop allows you to loop through the items in the...

The PHP for loop

The PHP for loop

Published: Sep 13, 2021

If you have something you want to repeat then consider using a PHP for loop, saving you from copying and pasting the same code multiple times. Adding the code into...

Refactoring to Laravel 8 Class Model Factories

Refactoring to Laravel 8 Class Model Factories

Published: Jul 20, 2021

Laravel 8 introduced new class based model factories and if you have an existing project you can use the legacy factories package to keep using the old factories. I have...

Trouble at the church book cover

The Little-Astwick Mysteries - Trouble at the Church

A fast paced crime mystery set in the fictional English village of Little-Astwick. David Morgan, a Community Support Officer, new to the area, gets plunged in at the deep end with a new acquaintance, Evelyn McKenzie, trying to figure out what has been going on at the village church.

Available on Kindle, Kindle Unlimited and Paperback.