Posted on , Development

Bringing Laravel’s dump() to Nuxt

Recently, I’ve been diving deep into Nuxt, and the experience has been fantastic. As a “Full-Stack Vue Framework,” it handles a lot of the heavy lifting, but one classic pain point remains: data visibility. If you come from the Laravel ecosystem, you’re likely spoiled by dump(), dd(), or the powerhouse that is Laravel Ray. These…

Posted on , Development

How to Change Git Branches on a Site Deployed with Forge

When Forge provisions a site, it uses a shallow clone of a single branch. This method prevents switching to other branches later. This approach is helpful for performance. Nonetheless, it can be limiting. This limitation arises when you need to test or deploy from a different branch on a staging or test server. Here’s how…

Posted on , Development

Setting Up a Cloudflare Tunnel with Wildcard Support

Cloudflare Tunnel is an excellent tool to expose your local websites to the public securely. It eliminates the need to configure a traditional VPN or public IP addresses. Here’s a step-by-step guide on how to set up a Cloudflare Tunnel and use a wildcard to access multiple local sites: Step 1: Create a Cloudflare Account…

Posted on , Development

Open folders in PhpStorm

PhpStorm has a command-line interface that you can install using the Tool Box, but did you know that you can also use the finder? Normally I’d just drag a folder into the app icon in the dock, and I guess that’s fine. But it’s also sometimes awkward on a dual monitor setup or when you’re…

Posted on , Development

A better way to work with Composer locally

Working on a Composer package locally can be challenging. You don’t want to commit changes to Git just to test something, and constantly updating Composer to see changes isn’t ideal either. Before, I often used symlinks for local development, and I still occasionally do. Yet, I’ve found an easier method for my core projects: using…

Posted on , General

Super simple local wildcard SSL!

For use with MAMP

Working locally most of the time a secure site won’t be necessary but from time to time you will require a secure connection. Such as working with oAuth providers, and making sure that you don’t serve any mixed assets. Previously I used OpenSSL locally on my Mac, and it was… OK, but it was sort…

Posted on , General

How to add and Use WordPress Custom Image sizes

Adding a custom image size to WordPress could not be easier. The following will create a size called Square that is 150 by 150 pixels, the parameter true will result in the cropping of an image. Now any time an new image is uploaded WordPress will generate a file something like image-150×150.jpg. If you want…

Posted on , Development

Working with branches in Composer

From time to time, you will find that you are going to need to work on a new feature, maybe your main application has some changes that live in your composer package or maybe you are adding a new feature to your compose package. In both scenarios, you might be maintaining a couple of feature…

Posted on , Development

Simple Googe Geolocation

What it is, and how you can use it.

What is Geolocation? Geolocation is a method used to find the location of your internet device on earth. Imagine you lost your cell phone, and use the find my phone option. The location of your phone will be your device’s last known location. How does Geolocation work? There are two main types of data collection….