Same semantics, more idiomatic Laravel. Drops the (array) cast, the array_values+array_filter pair, and the if (!empty(...)) guard in favor of $request->collect() + Collection pipeline + $query->when() conditional clause. |
||
|---|---|---|
| .. | ||
| Api | ||
| App | ||
| Auth | ||
| Controller.php | ||