Uncategorized

  • Forced scoping on a nested route binding

    A nested route binding resolved both models independently, so a request for one customer’s order under another customer’s URL returned the order. The unscoped behaviour is an authorisation…

  • An image built on arm64 will not run on amd64

    An image built on an Apple Silicon laptop is arm64 and the servers are amd64, and the failure is an exec format error with nothing else to go…

  • Elasticsearch 8 starts with security on and a token

    February’s major does not change the query API and does change what happens when you start the container, which is a larger disruption for most people. Everything that…

  • Full-text indexes in the schema builder

    A full-text index needed raw SQL in a migration until 9.0, which meant it was invisible to anything reading the schema definition. Natural language mode is the default…

  • Laravel 9 moved to Symfony 6 and took PHP 8 with it

    February, the first annual major, and a version number that means less than it used to. The work is two packages that block everything.

  • Testing a block theme without a browser

    A theme with no PHP has nothing a unit test can call, and the only test is a person looking at a page.

  • A keyword field is not a text field, and sorting proves it

    A text field is analysed into tokens and cannot be sorted or aggregated; a keyword field is stored whole and cannot be searched for a word inside it.…

  • Laravel 9 accessors are one method rather than two

    February’s release replaces the get-and-set method pair with a single method returning an Attribute object. The old syntax still works and is not deprecated, so this is an…

  • Elasticsearch 8 turns security on and removes types

    February, and a major that changes the default posture rather than the API. The cluster starts and nothing can connect to it.

  • A theme.json schema check in CI

    A typo in a theme.json key is silently ignored, which means a setting that does nothing looks exactly like a setting that works. The published schema is versioned…