PHP code example of boone-studios / laravel-surrealdb

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

    

boone-studios / laravel-surrealdb example snippets


BooneStudios\Surreal\SurrealServiceProvider::class

$app->register(BooneStudios\Surreal\SurrealServiceProvider::class);

'surrealdb' => [
    'driver' => 'surrealdb',
    'host' => env('DB_HOST', '127.0.0.1'),
    'port' => env('DB_PORT', 8000),
    'namespace' => env('DB_NAMESPACE', 'laravel'),
    'database' => env('DB_DATABASE', 'app'),
    'username' => env('DB_USERNAME', 'root'),
    'password' => env('DB_PASSWORD', 'root'),
],