taylornetwork/laravel-username-generator
Full Changelog: https://github.com/taylornetwork/laravel-username-generator/compare/2.7.0...2.8.0
usernameColumn property in the parent model if the column is different than 'username' and the config file is not directly changed.findSimilarUsernames would return an incorrect number of similarities when using the REGEXP function with a separator.prefer_regexp config option by default is now falseThis release addresses issues relating to other character sets. See the readme for a full change log.
Fixes issue where dictionary nouns and adjectives were not being respected
App\User to App\Models\User to mirror new Laravel versions (8.0+).Fixed bug in #25 where a model using the GeneratesUsernames without the specified column would throw an error rather than return a random username
Bug fix that was preventing username generation on unique usernames, using the FindSimilarUsernames trait when the username had found nothing similar.
As per #23
Added support for empty names to be converted to random usernames using a wordlist
Fix bug detailed in #16
See Changes
This fixes an issue where separators were added when trimming extra characters.
Example (using '-' as separator):
$generator->generate('123 this is a test!');
Would return:
'----this-is-a-test-'
If no separator was used this behaviour would not be seen.
makeUsername method to generate (makeUsername STILL has support, use generate preferably)generateFor method which allows you to pass a model for the generator to grab the name directlyGeneratesUsernames trait which will automatically add a username on model saving if it's nullHow can I help you explore Laravel packages today?