Skip to content

Version 2.4.1 of laravel-two-factor-authentication

Compare
Choose a tag to compare
@michaeldzjap michaeldzjap released this 13 Sep 16:08
· 58 commits to master since this release

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 simple mobile column on User that this package uses by default. For normal uses cases, no changes are required. However, if you implement your own provider or are overriding MessageBirdVerify#sendSMSToken you might want to replace any $user->mobile calls with $user->getMobile().