This repository was archived by the owner on Apr 19, 2025. It is now read-only.
Version 2.4.1 of laravel-two-factor-authentication
Added
- A new convenience method
$user->getMobile()has been added (PR #4). By default this is just returning$user->mobile. However, it is possible to override this with your own logic, for instance you could use a relation for the mobile phone number of a user instead of the more simplemobilecolumn onUserthat this package uses by default. For normal uses cases, no changes are required. However, if you implement your own provider or are overridingMessageBirdVerify#sendSMSTokenyou might want to replace any$user->mobilecalls with$user->getMobile().