PHP code example of hushulin / laravel-eloquent-rqlite

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

    

hushulin / laravel-eloquent-rqlite example snippets


$app->register(Hushulin\LaravelEloquentRqlite\LaravelEloquentRqliteServiceProvider::class);
 
'connections' => [
        
        'rqlite' => [
            'driver' => 'rqlite',
            'database' => env('DB_DATABASE', ':memory:'),
            'host' => env('DB_HOST', '127.0.0.1'),
            'username' => env('DB_USERNAME', ''),
            'password' => env('DB_PASSWORD', ''),
        ],

        'sqlite' => [
            'driver' => 'sqlite',
            'database' => env('DB_DATABASE', database_path('database.sqlite')),
            'prefix' => env('DB_PREFIX', ''),
        ],
        // ...
   ]

return [
];
bash
php artisan vendor:publish --tag="laravel-eloquent-rqlite-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="laravel-eloquent-rqlite-config"
bash
php artisan vendor:publish --tag="laravel-eloquent-rqlite-views"