GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. If nothing happens, download GitHub Desktop and try again.
You can install the package via composer: And publish the config via artisan: You will have to add the Recoverable trait to your model you want to have recovery codes and should add a json or array cast to the attribute holding the recovery codes. By default the trait uses a recovery_codes attribute/column - you can change this by setting $recoveryCodesName property: To set the new recovery codes to your model you should use the setRecoveryCodes() method because this method automatically hashes the recovery codes, if not already hashed.
Now that you have setup your app to generate and store recovery codes you should add the logic to recover an account.