Articles

5 ways to optimize your eloquent queries

7 months ago

Did you know that 1 in 4 visitors would abandon a website if it takes more than 4 seconds to load? While multiple factors can slow down a website, one...

Read more

Eloquent optimization: displaying only one record of a one to many relationship

7 months ago

Sometimes we need to display data for only one record in our one-to-many relationships. For example: Displaying the title of the last video each user...

Read more

Create make:custom commands in Laravel

8 months ago

Laravel comes with a feature that allows us to scaffold some commonly used classes, like models, factories, notifications, etc. If we want to create a...

Read more

Zero downtime deployment for Laravel apps

9 months ago

While I was building laravelremote.com (a Laravel remote job aggregator), I was worried that each time I wanted to push some changes to the production...

Read more

Filter Eloquent models with multiple optional filters

9 months ago

Often we need to filter eloquent models when displaying to a view. If we have a small number of filters this can be fine, but if you need to add more...

Read more