Home Tag Author Help

You've successfully subscribed to Codecourse Blog!

Subscribe to Codecourse Blog

Stay up to date! Get all the latest & greatest posts delivered straight to your inbox

Alex Garrett-Smith

Hey, I'm Alex. I teach with practical screencasts over on, and I love cats.

Recursive Nested Data in Laravel, The Right Way

Nested data is a pain point for a lot of developers. Relationships, eager loading and recursively iterating and displaying hierarchical data is enough to cause a headache. In this post,

Recursively convert an array and its children to a Collection in Laravel

If you're dealing with plain array data, it often makes sense to convert it to a Laravel Collection so you can make use of the myriad helpers on the Collection

6 ways to avoid IF statements in Laravel

If statements are evil and should be avoided at all costs. Just kidding – but reducing the number of them can increase the readability/size of your code. Here are 6

Replicating Database Records in Laravel

I recently found myself needing to replicate a database record in Laravel. Turns out, there's a really easy way to achieve this. First, let's take a look at a naive

Renderless Vue Components in 5 Minutes

Renderless components in Vue are components that tuck away functionality without dictating how the UI for that functionality should look. Simply put, renderless components say "here's the functionality you need,

Clean Reusable Livewire Modals That You Can Trigger From Anywhere

Everyone loves modals, and with Livewire they're surprisingly easy to implement with the help of Alpine.js. I've been through so many iterations of the perfect modal setup, and this

Laravel Livewire Infinite Scrolling

When I set out to implement infinite scrolling in Livewire, I didn't think it would be this simple. It turns out that loading more records with either the click of