HomeDevCentral

Better User attributes localization

Description

Better User attributes localization

  • Added a User::localizeAttribute method, to abstract trans() call. `User::localizeAttribute('fullname') will return "Full name".
  • Added a static User::getDefaultAttributes method, to get the attributes without instanciate a class.

Follow-up

The default attributes part could be moved into a trait.

Details

Provenance
derecksonAuthored on
Parents
rGROVE1c6b71777e35: Command outputs should use more relevant method
Branches
Unknown
Tags
Unknown