Tomasz_Ek
3 months ago
896
4
Laravel

Serial key generator - random string with separators.

Posted 3 months ago by Tomasz_Ek

Is there an easy way to change this:

Str::random(20) // e.g 4O3i7JDV9Em6qSqtL1SH

into this:

4O3i-7JDV-9Em6-qSqt-L1SH

Please sign in or create an account to participate in this conversation.