Oh Dear is the all-in-one monitoring tool for your entire website. We monitor uptime, SSL certificates, broken links, scheduled tasks and more. You'll get a notifications for us when something's wrong. All that paired with a developer friendly API and kick-ass documentation. O, and you'll also be able to create a public status page under a minute. Start monitoring using our free trial now.

Using whereAny() for cleaner queries in Eloquent

Link – youtu.be - submitted by Bert De Swaef

In this episode of the Quick Win Wednesday series, we're taking a look at whereAny(), which was released with Laravel 10.47. A very elegant way of grabbing data based on a conditional "any of the following columns".

Read more [youtu.be]

Stay up to date with all things Laravel, PHP, and JavaScript.

You can follow me on these platforms:

On all these platforms, regularly share programming tips, and what I myself have learned in ongoing projects.

Every month I send out a newsletter containing lots of interesting stuff for the modern PHP developer.

Expect quick tips & tricks, interesting tutorials, opinions and packages. Because I work with Laravel every day there is an emphasis on that framework.

Rest assured that I will only use your email address to send you the newsletter and will not use it for any other purposes.

Comments

Alice Magnet avatar

The whereAny() method in Laravel’s Eloquent ORM is not a built-in method, Friday Night Funkin but you can achieve similar functionality using a combination of where() and orWhere() methods to create more readable and cleaner queries when dealing with multiple conditions that could apply.

Toli Doo avatar

This strange but fun new clicker game on Steam, called banana game, has taken the platform by storm. The game, which came out in April 2024, is all about clicking on a banana. There's more to it than just raising a counter when you click on the banana.

samcoffee avatar

For those who prefer indoor activities, curling up by a fireplace in a cozy café or visiting an art gallery can lead to meaningful conversation. Museums and indoor exhibits offer a chance to bond over shared interests while avoiding the cold. Alternatively, a scenic drive through snow-covered landscapes followed by hot sex dolls cheap at a local café can set a relaxed tone.

we become what we behold avatar
we become what we behold

Oh those are great ideas how did you get them earn to die unbelievable

elliotzucker avatar

I tried the whereAny() method fish eat fish. It is quite efficient and brings surprises.

Comments powered by Laravel Comments
Want to join the conversation? Log in or create an account to post a comment.