Blog latest

  • Movies in July

    After my review of the last six months of movies, it made more sense to make it a monthly thing. I watched 33 movies this month, taking the total for the year to 225. Every single movie is a "first time watch". Below is a summary of my favo…

  • Laravel global scope ambiguous issue

    I came across a small edge-case when using Laravel's Global Scopes after following the example in the documentation. I created an "Active" scope, which can be applied to multiple models. <?php namespace App; use Illuminate\Database\Elo…

  • PHPStan, Encrypter and Laravel Packages

    I've just come across a rather annoying problem that is down to a relatively specific set of circumstances. I use the static anaylsis tool PHPStan to check my PHP code. I use the Laravel specific wrapper, developed by nunomaduro, called Larastan whic…

  • Laravel global scopes and Nova

    I have recently been building a new application using Laravel and Nova. For the front-end of the application, I would only like to restrict models to those that are "active". To achieve this, I used the global scope behaviour which makes su…

  • Six months of movies

    Over the first six months of 2021 I have watched 192 movies, none of which I have seen before. Below is a summary of some of my favourites. January It took me far too long to watch the classic movie The Blues Brothers, even more shockingly consideri…

  • A New Iteration

    So, I’ve finally updated my website. It’s been a long time since the last major change, but it wasn’t without trying. It’s not a radical change, the core content is still the same but the underlying technology has been updated to help me continue to…

  • Alpine.js Drag and Drop Integration with Laravel

    I use Laravel to manage my projects and I wanted to integrate the drag and drop code I wrote using Alpine.js, so I built a new component. This Laravel component supports passing in variables which builds up the two sides of the drag and drop listing;…

  • Alpine.js Drag and Drop

    Alpine.js is a new lightweight JavaScript framework which uses the approach of adding behaviour directly within your HTML markup. According to the documentation; Alpine.js offers you the reactive and declarative nature of big frameworks like Vue or…

  • Laravel Components and Component Libraries

    If you use a component library you might find some disconnect between them and how they're used on a project website. I have a primer about using the component library Fractal and your website. This describes syncing your CSS, JS and assets from the…

  • Use Fractal with your website

    I have recently been using Fractal to build out component libraries for a couple of new projects and I was curious how it would integrate with a project website. I needed a way to using the Fractal component library to integrate with a project websit…

Browse the blog archives