Blog post from July 2021

  • 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 considerin…

  • 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…

  • 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 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\Eloqu…