I still see a lot of Laravel code using `count() > 0` just to check if records exist.

`exists()` is more expressive, more efficient, and tells future readers exactly what you're trying to do.

Small change. Better code. 👇
image

  • No matching results...
  • Searching...

/ 1000

Poll Options