I am using laravel 5.2, And the using Swift Mailer for password resetting. I have 2-step verification on my gmail..
As the google help says :
Man, enter google settings, security options, security alerts. There you probably have alerts of google blocks ... your code is fine, only google is blocking you, give it permission and ready .... enter image description here