PHP code example of raystech / psu-passport
1. Go to this page and download the library: Download raystech/psu-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/ */
raystech / psu-passport example snippets
composer
Raystech\PSUPassport\PSUPassportServiceProvider::class,
'PSUPassport' => Raystech\PSUPassport\Facades\Passport::class,
use PSUPassport;
$credentials = ['username' => '', 'password' => ''];
$user = PSUPassport::authenticate($credentials);
$user->auth();
$user->getUserDetails();
$user->getStaffDetails();
$user->status();