PHP code example of bevi-webdev-jm / hub-auth-client

1. Go to this page and download the library: Download bevi-webdev-jm/hub-auth-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/ */

    

bevi-webdev-jm / hub-auth-client example snippets


Schema::table('users', function (Blueprint $table) {
    $table->string('hub_user_id')->nullable()->unique();
});

protected $fillable = [
    'name',
    'email',
    'hub_user_id',
    // ...
];

use BeviBeverage\HubAuthClient\Contracts\ResolvesHubUser;

$this->app->bind(ResolvesHubUser::class, MyCustomUserResolver::class);

public function resolve(SocialiteUser $hubUser): Authenticatable;
bash
php artisan vendor:publish --tag=hub-auth-config