Closed gerbenjacobs closed 8 years ago
The best way is #1
(I prefer this method), but I understand why other developers like to use #3
is al lot easier to access. Because you access this like json data/object.
Alright, since I have no real preference and there's no other suggestions, let's stick with what we have, which is option 1.
Question:
Lately in Laravel I have seen a lot of people use the variable name as getter, without the Java-esque way of camelcasing.
What should we use in v2?
This would translate in output as follows: