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

Upgrading a Laravel Vapor app to PHP 8.2

Upgrading a Laravel Vapor app to PHP 8.2

Published: Dec 23, 2022

I recently updated a Laravel app running on Laravel Vapor to PHP 8.2. I was a bit nervous about the upgrade but it went smoothly for me. This article goes...

Building a VS Code Extension for Gutenberg blocks

Building a VS Code Extension for Gutenberg blocks

Published: Nov 18, 2022

I have been tasked with building a new website using WordPress. The last time I used WordPress was a few years ago and involved using Advanced Custom Fields to build...

Using Pest to test Laravel Livewire validation rules

Using Pest to test Laravel Livewire validation rules

Published: Aug 12, 2022

Last year I wrote a post about testing Laravel Livewire validation rules with PHP Unit. This post uses the same techniques as that post, but shows how to transfer it...

Mocking window.location in Jest

Mocking window.location in Jest

Published: Jun 18, 2022

Recently I had to write some tests for a piece of JavaScript code that used window.location. This left me trying to figure out how to mock the window.location so that...

Considerations for Incremental Static Regeneration in Next.js

Considerations for Incremental Static Regeneration in Next.js

Published: May 18, 2022

Next.js offers a feature called Incremental Static Regeneration (ISR) that allows you to generate a static page when the page is first visited, rather than generating a static copy at...

Mocking axios in Jest tests with Typescript

Mocking axios in Jest tests with Typescript

Published: Mar 9, 2022

Recently I wanted to write a test for a React component that uses axios to retrieve information from an API. To do this I had to mock jest, but I...

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.

Stay updated