Releases: j-jalving/statamic-autograph
1.5.1
1.5.0
1.4.1
1.3.0
Changes
- 931a129 Updated the
user_formatter
config option to a class based solution. - 0fd837e Fixed a bug where the select field arrow would be misaligned when a validation error was displayed.
- 8a1a046 Cleaned up some code
Upgrade Steps
The default value for the user_formatter
config option now is \JJalving\Autograph\CustomUserFormatter::class
. If you haven't exported the config file everything should still work as expected, otherwise please update this config value.
To use a custom user formatter, you may now create a class that implements the JJalving\Autograph\Contracts\UserFormatter
interface.
This change was made because the previous (closure based) user_formatter
config option was causing issues with Laravel not being able to cache the config. In the process I made the default formatter a bit smarter, it now checks for a first_name
and a last_name
field first, and then falls back to the default name
field for displaying the users name. Also it only appends an email address if an email
field` is found.