Add a Mailchimp email subscription form in Laravel – double opt in!

March 8, 2020

With several fantastic extension out there, integrating a Mailchimp email subscription form in Laravel has never been easier! I am going to show you an example integration that collects an email address in a simple form. We will be using the laravel-newsletter package by spatie. Assumptions You have a Laravel application already running You have a

How to use custom pivot tables in Laravel 6.x

November 18, 2019

Have you run into this before? Your app’s database table structure is predefined and unalterable. There are lookup tables (called pivot table in Laravel) that create many to many relationships between tables using YOUR naming convention. It makes sense in the context of your application, but you quickly find out that Laravel’s relationship defaults do

How to fix a WordPress HTTPS redirect loop with an NGINX reverse proxy

September 16, 2019

If your WordPress site is set up to use HTTPS and a reverse proxy, such as an NGINX reverse proxy, is put in front of it you may wind up with an infinite redirect loop. Following the redirect in dev tools, it looks like this is happening: https://example.com -> https://example.com A head scratcher for sure,

How to fix missing Calibri and Cambria fonts on Mac (Bonus: Segoe UI)

July 11, 2019

If you open Microsoft formatted documents on your Mac like I do then you have probably run across the annoying message saying the Calibri or  Cambria font is missing. For years I have ignored this as an annoyance, but today I decided to do something about it. Turns out there is a very easy fix!

How to extract a single table from a MySQL sql file

June 18, 2019

Ever received a large MySQL dump file and only needed one table out of it? I ran across just this issue. The full database took significant time to import and I only needed a small subsection of the DB, just one single table. Rather than waiting for it all to import, I pulled together a