PHP code example of users-au / users-au-laravel-client

1. Go to this page and download the library: Download users-au/users-au-laravel-client 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/ */

    

users-au / users-au-laravel-client example snippets


$this->fillable = [
    ...
    'usersau_id',
    'usersau_access_token',
    'usersau_refresh_token',
];
$this->hidden = [
    ...
    'usersau_id',
    'usersau_access_token',
    'usersau_refresh_token',
];

'usersau' => [    
  'client_id' => env('USERSAU_CLIENT_ID'),  
  'client_secret' => env('USERSAU_CLIENT_SECRET'),  
  'redirect' => env('USERSAU_REDIRECT_URI'),
  'host' => env('USERSAU_HOST'),
],

Usersau\UsersauLaravelClient\UsersauLaravelClientServiceProvider::class,

php artisan migrate

php artisan vendor:publish --provider="Usersau\UsersauLaravelClient\UsersauLaravelClientServiceProvider"