PHP code example of vincentshiqi / laravel-p-oci8

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

    

vincentshiqi / laravel-p-oci8 example snippets


Vincent\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