1. Go to this page and download the library: Download quatrebarbes/snow-driver 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/ */
use Illuminate\Support\Facades\Schema;
$schema = Schema::connection('servicenow');
$schema->getTableListing(); // noms techniques des tables de l'instance
$schema->hasTable('incident');
$schema->getColumns('incident'); // champs hérités des tables parentes compris
$schema->getColumnListing('incident');
$schema->hasColumn('incident', 'number');
$schema->getForeignKeys('incident'); // déduites des champs de type reference
Incident::count(); // fonction d'agrégation de l'API, sans rapatriement
Incident::paginate(20); // total et nombre de pages inclus
Incident::where('active', true)->exists();