📚 Articles

The article archive. Everything I've written in one handy place!

🗃 Topics
💻
Front End
View Topic
Laravel
View Topic
Official PHP Logo image/svg+xml Official PHP Logo Colin Viebrock Copyright Colin Viebrock 1997 - All rights reserved. 1997
PHP
View Topic
Laravel

Re-useable Eloquent Model Filters

13 March 2022

Filters are a tricky thing to get right, and I haven't found the perfect solution yet, but reusable filter classes is close and proved to work very well for rapidly building filters for models.

Read Article
Optimising your JavaScript Bundle
Front End

Optimising Your JavaScript Bundle Size

06 December 2021

Front end bundle sizes can quickly spiral out of control. It's good to take a breather and re-evaluate what libraries you're pulling in. I did this recently, lets look at the process I followed.

Read Article
PHP

Filtering Carbon Period For Flexibility And Performance

28 November 2021

I recently needed to work on a slot based booking system at work. This system needed to accept a few parameters and return "slots" of time where that user is available. I managed to do this in a flexible way by making use of Carbon's CarbonPeriod class and filters. Lets take a look!

Read Article