PHP code example of klinson / laravel-sybase

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

    

klinson / laravel-sybase example snippets


Uepg\LaravelSybase\Database\SybaseServiceProvider::class

    'connections' => [
        
        ...

        'sybaseuepg-aluno' => [
            'driver'   => 'sqlsrv',
            'host'     => env('DB_HOST', 'sybase.myserver.br:5000'),
            'database' => env('DB_DATABASE', 'mydatabase'),
            'username' => env('DB_USERNAME', 'forge'),
            'password' => env('DB_PASSWORD', 'secret'),
            'charset'  => 'utf8',
            'prefix'   => '',
        ],