Blog post latest

  • Movies in November

    Continuing my monthly movie summary, here's a run-down of some of the movies I watched in November 2021. I watched 28 movies this month, taking the total for the year to 347. I started the month of by watching Dune at the cinema. The movie featur…

  • Movies in October

    Continuing my monthly movie summary, here's a run-down of some of the movies I watched in October 2021. I watched 29 movies this month, taking the total for the year to 319. Hallow…

  • Laravel route model binding and global scopes

    I have been using Laravel's Global Scopes in a recent project. Global scopes are a great way to ensure you're only returning the data you need, especially if you're using soft deleting or other restrictions such as an "active" state. Since…

  • Movies in September

    Continuing my monthly movie summary, here's a run-down of some of the movies I watched in September 2021. I watched 31 movies this month, taking the total for the year to 290. Cali…

  • Laravel authorisation with policies and requests

    Laravel comes with a few tools which help you manage authorisation and restrict how different users interact with your application. The Laravel documentation for Authorisation covers how you handle most of this. First you would create a policy for yo…

  • Movies in August

    Continuing my monthly movie summary, here's a run-down of some of the movies I watched in August 2021. I watched 34 movies this month, taking the total for the year to 259. Dangal…

  • My code quality setup

    When building a codebase, either on your own or within a team, its a good idea to keep code consistant. One of the main tools to help keep code consistant is to decide on and employ coding standards. Yes, that means tabs vs spaces, but it also means…

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