Instructions:
- Copy the contents of this gist's console.php into routes/console.php
- Run
php artisan identify-duplicates
At the start of the script, it will ask you if you want to replace any identied duplicate IDs. If you choose to do so, new Stache IDs will be generated and the Laravel cache will be cleared.
I tweaked this slightly to also check for duplicate users: