How to check if the result is empty for eloquent collection in Laravel?
A lot of times when coding we might encounter a problem where we have to check if the result we are getting has some data or not. But when we are working with eloquent results, even if it is empty, the function ’empty()’ holds false as well as ‘if($result)’ always holds true. So to find …
How to check if the result is empty for eloquent collection in Laravel? Read More »