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
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?
// Group entity// #1functiongetDescription() {}
// #2functiondescription() {}
// #3 - no getter at allpublic$description;
// #4 magic __getfunction__get() {
// if get$name() exists use that// else if theres a property use that// else error; not found
}
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.
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:
The text was updated successfully, but these errors were encountered: