Articles

Create make:custom commands in Laravel

6 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

7 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

7 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

hasOne and belongsTo confuse me!

7 months ago

This title comes from a Reddit post I saw the other day. The poster argues that the hasOne() and belongsTo() model methods are "counter-intuitive". My...

Read more

Is your site slow? Check your database queries

7 months ago

Is your website slow? does it take ages to load? Are the users complaining that it's almost unusable?. You should check your database queries. And I'm...

Read more