PHP code example of hypnodev / laravel-mongodb-passport

1. Go to this page and download the library: Download hypnodev/laravel-mongodb-passport 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/ */

    

hypnodev / laravel-mongodb-passport example snippets




namespace App\Models;

use Illuminate\Notifications\Notifiable;
use hypnodev\Mongodb\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;
}

hypndev\Mongodb\MongodbPassportServiceProvider::class,

$app->register(hypndev\Mongodb\MongodbPassportServiceProvider::class);