1.3.0
September 19th, 2023
Changes
- 931a1298d1e9153306c3d5c3ed0664d494fdfd91 Updated the
user_formatter
config option to a class based solution. - 0fd837eff12bb05bf86463f75c82697a744f2667 Fixed a bug where the select field arrow would be misaligned when a validation error was displayed.
- 8a1a046660c3c98dad885102c1b22d9004f8d73e 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.