Blog post from February 2023

  • Movies in January 2023

    It's a new year, so here is my January movie review. Overall, I watched 24 new movies this month and every movie was released in 2022. I caught up on some fantastic movies and some hard-hitt…

  • Time Travelling Dudes

    I am really happy with these trilogy triptych prints from Nick Chambers. They are titled “Time Travelling Dudes” and you can hopefully guess which characters the simplified lines are depicti…

  • Laravel Active Trait

    When adding functionality that might be applied in multiple places, you might consider a way to reuse the code. You can either make all your classes extend a base class using inheritance or…

  • Using the Laravel Active Trait

    In a previous blog post, I wrote how I build traits for using in Laravel. This post discusses how you can use the trait in your Eloquent models. It covers how you actually use them, using th…

  • Do Not Render a Laravel Component

    There have been many times when I was building a Laravel View Component and only wanted to render the HTML based on some logic. In the past, I added a Blade @if block to the actual component…

  • Lesser-Known Composer Commands

    Composer is the tool PHP developers use to manage their dependencies. Most of the time a composer.json is set up at the start of a project and then forgotten about. I often run the composer…

  • Short URL String Helper for Laravel

    In a recent project, I wanted to add some string helper methods. Laravel already provides a long list of string helper methods but they didn't cover what I wanted. These string methods can a…

  • Refactoring my Laravel Project

    My website has been on Laravel for a while and it has grown a lot over the last year. There weren't (m)any tests nor did the codebase have any static analysis or code style restrictions. Whi…

  • Using Native PHP Enums

    It is often common practice to use 1 or 0 values for columns in database tables. As a developer, I equate these to true and false and modern frameworks such as Laravel allow you to easily ca…

  • Digital Preservation How-to

    I have been doing a small part of digital preservation for some of my legacy projects. Restoring old projects that were built many years (decades) ago is no easy task; supported versions mov…