PHP code example of loadinglucian / laravel-optimal-sqlite

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

    

loadinglucian / laravel-optimal-sqlite example snippets


Loadinglucian\LaravelOptimalSqlite\OptimalSqliteServiceProvider::class,

'sqlite' => [
    'driver' => 'sqlite',
    'database' => database_path('database.sqlite'),
    'busy_timeout' => 10000,
    'journal_mode' => 'WAL',
    'synchronous' => 'NORMAL',
    'pragmas' => [
        'cache_size' => -40000,
        'mmap_size' => 2147483648,
        'temp_store' => 'MEMORY',
    ],
],
shell
php artisan migrate
php artisan migrate:fresh