These posts are all related to Laravel - the PHP framework for web artisans.

December 18, 2020

Cleaning up old unused records and files in Laravel applications

Sometimes to improve the user's experience, it makes sense to store files and create records hoping they will eventually be used somehow. We're doing it here with this tweet form. We let the user select and upload photos; we then store them on the...

December 21, 2019

4 ways to deal with complexity in your eloquent models

I think everyone loves to work on completely greenfield applications. You get to plan your own course, chose your current favourite technologies, structures, and patterns to follow. There is no legacy code, no technical debt, nothing that stands in your...

October 21, 2019

InertiaJS infinite scrolling example

I just published a new video on how to do infinite scrolling in an InertiaJS and Laravel application – using a twitter-like feed as an example. The gist of it is: Setup a listener for the scroll event Inside the listener calculate the remaining...

January 30, 2019

Eloquent trick no.1 - Replace conditionals with "when"

It happens very often that we want to apply certain eloquent query conditions based on what a request sends in. Sometimes it’s a "search by name" thing, other times we just need to filter the records based on a status column. Usually it looks like...

Constantin Druc

Hi, I'm Constantin!

I am a full stack developer sharing everything I know here on my blog and through my screencasts.

What's your e-mail?

Get a monthly digest of what I've been up to: screencasts, blogposts, and other goodies.

No spam. Unsubscribe anytime.

Recent posts: