PHP code example of mikielis / laravel-azure-ad-oauth-laravel

1. Go to this page and download the library: Download mikielis/laravel-azure-ad-oauth-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mikielis / laravel-azure-ad-oauth-laravel example snippets


php artisan vendor publish

\mikielis\AzureSocialite\UserFactory::userCallback(function($new_user){
	$new_user->api_token = str_random(60);
});