All entries of my technical and business blog

Livewire 3 Reactive Event Dispatching

Sep 9, 2025 laravel

Issuing events with Livewire is a useful way to communicate between components. But, there are some caveats to be aware of - especially if you’re coming from something like React or Vue. The majority of this comes from the fact that Livewire treats every component as an island.

This had stumped me a few times in the past. Because of this, I wanted to give a quick example of how you can use Livewire events in a way that you might be more familiar with: with reactivity.

Showing UTC in the Users Timezone Easily

Jun 18, 2025 html javascript

In most of my applications, time is reflected in the UTC timezone. This is great for logic and math, but not so great when showing the date to the regular user.

Now, it’s pretty easy to show the UTC dates in the user’s timezone, without even asking them what it is.

Let’s see how to do this with a little bit of HTML and Javascript.

PHPStorm Docker Not Starting Fix

May 31, 2025 docker phpstorm

Recently, I had an issue with PHPStorm not detecting my Docker configuration. I was using Docker Compose and everything worked fine with docker cli and Orbstack. Why wouldn’t PHPStorm recognize this? It’s a simple fix, actually. It has to do with the name of your project. Let me explain.

How I Launch a Laravel Testbed

Jan 16, 2025 laravel

Sometimes I need to spin up a quick Laravel instance on my Mac to test something out. With just a couple keystrokes, I can get a brand new Laravel instance running in a Docker container, ready for my IDE and testing. Here’s how.