How to minimise CRUD front-end code duplication in Laravel 5.4 / Twig

CRUD (Create/Read/Update/Delete) is something that developers do quite a bit of. Frameworks can help with this, but there’s still a fair amount of code you’ll need to write for every CRUD screen you put together.

One particular area is the difference between Create and Update. For many of the projects I’ve worked on, Create and Update are often very similar. They aren’t identical, but if there’s enough overlap between them, you can minimise duplicate code with the following setup.

Continue reading “How to minimise CRUD front-end code duplication in Laravel 5.4 / Twig”

Advertisements

Food photos taken before I went gluten-free

I’ve been browsing through some old photos, looking for things that I could post on my blog. In doing so, I’ve come across several food photos (and a couple of drink photos) that are of things I’ve had to give up – or at least change – since going gluten-free in late 2014.

Here are a few of my favourites – or the things I used to like, anyway…

Continue reading “Food photos taken before I went gluten-free”

Shooting album covers in Central Park, NYC

In late September/early October 2006, we went to New York for the first time – so far, the only time. We decided to visit New York while we lived in the UK, as we would be moving to Australia just a couple of weeks later – and the journey would be shorter from the UK.

We visited Central Park, and took photos as we went. Some of these were potential album covers. Here are a few from the shoot.

Continue reading “Shooting album covers in Central Park, NYC”