Hey, I'm Eduar.
I’m an experienced PHP and Laravel developer
with a deep interest in modern web development...
More about me.
January 9, 2022
This is a small guide on how to implement a Reddit-style "what's hot" algorithm with Laravel Frameowrk.
There are two primary benefits to using a "what's hot" algorithm.
It gives newer posts a chance. The problem with many "most popular" pages is that...
September 7, 2021
Previously in Laravel when you wanted to get a relation and include an extra complex condition you had to do it with the
whereHas method in the following way:
September 2, 2021
Let's do some piggybacking on our code from Tip #1.
Note how we fetch the User model for a given participant in the average function. This is highly problematic, because we're doing an additional...
August 31, 2021
How you can avoid loops by using collections. It sounds great from the beginning but you need to practice it in order to be able to use it in your own projects..
Imagine you are developing a web...