Laravel mail with office 365 OAuth

  laravel, php

Microsoft now required oauth setup to send emails via SMTP.

How do I configure that in Laravel.

I have setup everything in Office 365 and got necessary ids.

Could not find any tutorials online about the setup.

Here is the link to article from Microsoft for oauth setup.

Thank you

Source: Ask PHP