Duncan McClean

Testing with Stripe Elements in Laravel Dusk

You need to test payments, probably the most important part of your web application. Well, here's a real simple way to do that with Dusk.

Get rid of red bars in Sketch

Red bars can be annoying, especially if you can't get rid of them. They defiantly drove me round the bend.

Install Imagick with Laravel Valet

Quick tutorial on installing Imagick on Mac, alongside your Laravel Valet installation.

How to resolve Duplicate IDs in Statamic 3

Duplicate IDs in Statamic is a pretty common issue, especially if you do lots of git merging and you have lots of content.

Introduction to Fabric

A little about Fabric - a thing I built to quickly scaffold PHP, Laravel and Statamic packages. (it's got a video too)

Simple Commerce has launched!!

The story of me building Simple Commerce - my e-commerce Statamic addon. It's taken months from prototype to launch but I think it's an awesome product.

Building a Likes addon in Statamic 3

This post walks you through the process of building a Statamic Likes addon, from bootstrapping to writing the code and setting up tests.

Move S3 objects from one AWS account to another

A really simple tutorial on copying objects over from an old AWS account to a new one.

Use Laravel's Maintenance Mode in Statamic

Now that Statamic is just a package inside a Laravel application, it means you can take advantage of Laravel features. There's a Laravel feature called Maintenance Mode which means visitors will see a 'site down' message.

Setting up for Statamic addon development

Setting up for developing a Statamic 3 addon can be tough. Especially if you've never done package development before. In this post, I guide you through the process of getting everything setup.

2019 Year in Review

I've never written one of these before but I thought it would be a good time to start, especially as I've had a year where quite a few things changed in my life.

Story of my accidental £1.7k bill from Google Cloud Platform

This was a very stressful hour and a half. Somehow my servers went rouge, tried to process 50,000 jobs at once. Each of those calls hit a Google API, racking me up a total in the region of £2700+. Thankfully, I managed to get it adjusted.

Setup Statamic v2 on Laravel Forge

Every site needs to be hosted, and your Statamic site is no different. The recommended solution is a combination of Digital Ocean and Laravel Forge to handle your hosting and provisioning respectively.