PHP code example of hoandv / id-connect

1. Go to this page and download the library: Download hoandv/id-connect 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/ */

    

hoandv / id-connect example snippets


// config/id_connect.php

return [
    /*
    |--------------------------------------------------------------------------
    | Custom models
    |--------------------------------------------------------------------------
    | Your models to which data should be returned.
    |
    | Your own models should extends the base models.
    |
    */
    'models' => [
        'user' => \App\User::class,
        'position' => \SonLeu\IDConnect\Models\Position::class,
        'department' => \SonLeu\IDConnect\Models\Department::class, 
    ]
];
terminal
php artisan vendor:publish --tag=id_connect_config