2
In my migration
of User
owning: name, id, email and authorization key, however, I would like to know whether it is possible to authorization key is created randomly during user creation, this key has to contain 6 characters.
For example, when the user is created, the key automatically receives a hash
:
(12hj34 or user/32ej97).
Is there any recourse to it?
An alternative is to perform only
\Illuminate\Support\Str::random(6)
without the need for a third-party lib.– Skywalker