Extending Laravel With Macros

The Laravel macroable trait allows you to add a new method into the class at runtime to use throughout your application.

Improve Docker Performance On MacOS

Here are some tips you can use to speed up docker on your local machine, especially for developers using MacOS.

Laravel Custom Casts

One of the new features in Laravel 7 is the creation of custom eloquent casts. Learn how to create your own custom casts instead of using attribute mutators.

Github Action To Push Docker Image

Push a Docker image to the Docker hub on merges into master by using Github Actions.

Test Laravel With Github Actions

Create a GitHub action that will build and run tests on your Laravel project

Clean Up Your Docker Environment

Learn how to clean up your local docker environment using docker prune.

Laravel Eloquent Builder Vs Scopes

Here we investigate using eloquent scopes and how we can refactor them into our own eloquent builder class.

Faster and Simpler Image Optimization for Wordpress

ImageEngine can kick things up a notch. ImageEngine uses WURFL device detection and globally positioned device-aware servers to get the exact context an image is accessed from.

Front-end Performance Checklist 2020

Each year Smashing magazine release an article of the best tips to help improve your frontend performance. Here they have over 80 tips on what you can do to improve your frontend performance. There's even a downloadable PDF of checklist you can use on your own projects.

Design Patterns: Simple Factory

A simple factory is an object that is used to generate an instance of an object for the client. The simplest way of understanding a factory is a object for creating other objects.

PHP 7.4 New Features

PHP 7.4 comes with a few new features that can help improve performance and make for cleaner code. Here's some of the new features that come with PHP 7.4.

Fake Compose PHP Version

Tell composer which version of PHP you want it to download packages for, making sure that all your install packages will be valid for production.

Composer Version Cheatsheet

A small cheatsheet on composer versioning.

Formatting Exception Messages

Learning about how you can format exception message classes.

Running Xdebug In Docker Container

Learn how to setup phpunit xdebug in a docker container and run your PHPStorm tests using this docker container.