PHP code example of phattarachai / laravel-db-console
1. Go to this page and download the library: Download phattarachai/laravel-db-console 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/ */
phattarachai / laravel-db-console example snippets
use Phattarachai\DbConsole\DbConsole;
DbConsole::auth(fn (Request $request) => $request->user()?->isAdmin() === true);
'connections' => [
'default' => [],
'reporting' => ['mode' => 'read', 'label' => 'Reporting replica'],
],
bash
php artisan vendor:publish --tag=db-console-lang