PHP code example of plcosta / laravel-openbase

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

    

plcosta / laravel-openbase example snippets


Plcosta\Openbase\OpenSqlServiceProvider::class,

$results = DB::select('select * from users where id = ?', array(1));

$results = DB::connection('openbase')->select('select * from ce02 where id = ?', array(1));
terminal
$ php artisan vendor:publish