[12.x] Add findRand() method to Eloquent Builder for random record selection#56005
[12.x] Add findRand() method to Eloquent Builder for random record selection#56005Ashot1995 wants to merge 2 commits intolaravel:12.xfrom
Conversation
b0c1eb8 to
330fc81
Compare
979d662 to
6a2c3dc
Compare
|
At the risk of being smart-alecky here: Is it really "finding" (or "searching" to begin with) something if we say "give me whatever"? That being said (or asked to be precise 😉), I would suggest, naming it
Coincidentally,
However, Laravel already has |
|
Why |
…oquent-find-rand-method
|
I don't know, all |
|
Thanks for your pull request to Laravel! Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include. If applicable, please consider releasing your code as a package so that the community can still take advantage of your contributions! |
feat: add findRand() method to Eloquent Builder
Add findRand() method for convenient random record retrieval that follows
the existing find* method family pattern. Supports single and multiple
record selection with consistent return types.
Examples: