1. Go to this page and download the library: Download ledtest/oracle 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/ */
ledtest / oracle example snippets
if (config('database.default') === 'oracle') {
DB::statement("ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'");
}
$results = DB::select('select * from users where id = ?', [1]);
$results = DB::connection('oracle')->select('select * from users where id = ?', [1]);