PHP code example of kaguya / laravel-oci8

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

    

kaguya / laravel-oci8 example snippets


Yajra\Oci8\Oci8ServiceProvider::class,

'oracle' => [
    'driver'        => 'oracle',
    'tns'           => env('DB_TNS', ''),
    'host'          => env('DB_HOST', ''),
    'port'          => env('DB_PORT', '1521'),
    'database'      => env('DB_DATABASE', ''),
    'username'      => env('DB_USERNAME', ''),
    'password'      => env('DB_PASSWORD', ''),
    'charset'       => env('DB_CHARSET', 'AL32UTF8'),
    'prefix'        => env('DB_PREFIX', ''),
    'prefix_schema' => env('DB_SCHEMA_PREFIX', ''),
],

'providers' => [
	'users' => [
		'driver' => 'oracle',
		'model' => App\User::class,
	],
]

$ php artisan vendor:publish --tag=oracle