Writing

Howto's, snippets, and articles I've written over the years.

Laravel: Update created_at and updated_at timestamps manually

August 30th, 2022

Ever needed to manually set the `created_at` and `updated_at` fields in a Laravel Model? By default the `updated_at` field will be overridden with the current date and time. To get around this you need to pass `false` to the `timestamps` key when saving the model.

Git Ignore File Mode

Git Ignore File Mode

August 25th, 2022

Here's how to tell git to ignore file mode changes.

How To Fix The Footer To The Bottom Of The Page With Tailwind CSS

How To Fix The Footer To The Bottom Of The Page With Tailwind CSS

February 21st, 2022

Here's how I fixed the footer to the bottom of the page with Tailwind CSS.

How to install and start Mailhog on Ubuntu 20.04

How to install and start Mailhog on Ubuntu 20.04

January 14th, 2022

Testing email on development sites can be hard but we can use Mailhog to make it easier. Here's how to install and start Mailhog on Ubuntu 20.04.

Sylius: How to add position to product images

Sylius: How to add position to product images

January 5th, 2022

Sylius doesn't come with functionality to change the ordering of images in the admin area but it would be great if we could do it ourselves. Here's how to add a position to the product images tab.

Vue Not Updating When Changing Array

July 11th, 2021

Today I had a problem with Vue.js not updating when I changed content in an array. Here's how I resolved it.

Feature Estimation: What is the real cost of adding a feature to a website?

January 2nd, 2021

When a client requests a feature, how do you provide a reasonable estimate? What do you base your estimate on. How much contingency do you add?

How To Create a New User in MySQL 8

November 27th, 2020

The command to create a new user on MySQL version 8 has changed. Heres how to do it.

Solved: Installing composer V1 with Ansible

November 12th, 2020

Here's how I solved installing Composer V1 with Ansible

Magento 2: How to disable the Admin Two Factor Auth (2FA) Feature

September 17th, 2020

Today I installed Magento 2 for the first time in about a year. Once installed I navigated to the admin area and was presented with a two factor auth warning. Heres how I disabled it.

Symfony: Open file in VSCode or PHPStorm from the browser

Symfony: Open file in VSCode or PHPStorm from the browser

April 30th, 2020

Did you know you can open files in your IDE direct from Symfony's exception pages?

How to Set a User Agent for PHP fopen() calls

January 21st, 2020

How to set a user agent when using PHP's fopen() with an URL

Older articles