Automatically generate usernames for Laravel User Model
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/taylornetwork/laravel-username-generator/compare/2.7.0...2.8.0
Published by samueljtaylor over 2 years ago
usernameColumn
property in the parent model if the column is different than 'username'
and the config file is not directly changed.Published by samueljtaylor over 2 years ago
findSimilarUsernames
would return an incorrect number of similarities when using the REGEXP
function with a separator.prefer_regexp
config option by default is now false
Published by samueljtaylor almost 3 years ago
Published by samueljtaylor about 3 years ago
This release addresses issues relating to other character sets. See the readme for a full change log.
Published by samueljtaylor about 3 years ago
Fixes issue where dictionary nouns and adjectives were not being respected
Published by samueljtaylor almost 4 years ago
Published by samueljtaylor almost 4 years ago
App\User
to App\Models\User
to mirror new Laravel versions (8.0+).Published by samueljtaylor almost 4 years ago
Fixed bug in #25 where a model using the GeneratesUsernames without the specified column would throw an error rather than return a random username
Published by samueljtaylor almost 5 years ago
Bug fix that was preventing username generation on unique usernames, using the FindSimilarUsernames trait when the username had found nothing similar.
As per #23
Published by samueljtaylor almost 5 years ago
Added support for empty names to be converted to random usernames using a wordlist
Published by samueljtaylor over 5 years ago
Fix bug detailed in #16
Published by samueljtaylor over 5 years ago
Published by samueljtaylor over 5 years ago
See Changes
Published by samueljtaylor over 5 years ago
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.
Published by samueljtaylor over 5 years ago
Published by samueljtaylor over 6 years ago
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 null