PHP code example of rafidalridwan / laravel-db-client

1. Go to this page and download the library: Download rafidalridwan/laravel-db-client 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/ */

    

rafidalridwan / laravel-db-client example snippets


return [
    'middleware' => ['web', 'auth'],  // Middleware to protect routes
    'read_only' => false,              // Enable read-only mode

    'allowed_commands' => [            // Artisan commands allowed
        'migrate',
        'migrate:status',
        'migrate:rollback',
        'db:seed',
    ],
];
bash
php artisan vendor:publish --tag=dbclient