PHP code example of lamb / laravel-postgis-database

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

    

lamb / laravel-postgis-database example snippets


'providers' => array(
  'Lamb\LaravelPostgisDatabase\PostgisDatabaseServiceProvider'
)

  'pgsql' => array(
    'driver'   => 'postgis',
    'host'     => 'localhost',
    'database' => 'database',
    'username' => 'root',
    'password' => '',
    'charset'  => 'utf8',
    'prefix'   => '',
    'schema'   => 'public',
  ),