Indeed, this article is helpful for simple searches. Let me simplify foreach in blade, you just cycle through with forelse instead of checking with condition:
I am a professional DevOps Engineer with a demonstrated history of working in the internet industry. I am an avid Linux lover and supporter of the open-source movement philosophy.
Location
Sofia, Bulgaria
Work
Developer Advocate at Materialize | Community Manager at DigitalOcean | Co-Founder at DevDojo
Indeed, this article is helpful for simple searches. Let me simplify
foreach
in blade, you just cycle through withforelse
instead of checking with condition:Yes!!
forelse
is very handy. I actually go over it in this post here:How to use Forelse loop in Laravel Blade