Articles
2 years 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...
2 years 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...
2 years 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...
2 years ago
I've seen a couple of questions on laravel forums that look something like this. .env Not Reading Variables Sometimes env() / getenv() Sometimes No...
2 years ago
You've probably seen a lot of tweets and blog posts about how collections can make your code more readable and compact, reducing if statements and ugl...