You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really really (really) like the idea of having dynamic wheres back in #L4.
It makes your code look a bit more clearer in my opinion.
Since we are following the PSR standards, it'd be cool if it was camelCase, instead of the snake_case one.
$user = User::whereName($name)->first();
I'm not sure if this was already in the making, but it would be awesome if this was available.
Anyone else missing this?
The text was updated successfully, but these errors were encountered:
It has been proposed before, but is not implemented because of the conversion from camelCase back to snake_case (which is of course possible). However, in L4 it is possible to dismiss the second parameter (the comparator) so you can now use:
$user = User::where('name', $name)->first();
Which I think is just as nice to look at and it's clearer which column is actually involved, because there is no conversion going on.
I really really (really) like the idea of having dynamic wheres back in #L4.
It makes your code look a bit more clearer in my opinion.
Since we are following the PSR standards, it'd be cool if it was camelCase, instead of the snake_case one.
I'm not sure if this was already in the making, but it would be awesome if this was available.
Anyone else missing this?
The text was updated successfully, but these errors were encountered: