PHP code example of ak-codehub / db-vault
1. Go to this page and download the library: Download ak-codehub/db-vault 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/ */
ak-codehub / db-vault example snippets
use Illuminate\Support\Facades\Schedule;
Schedule::command('dbvault:drop-expired-sessions')->everyFiveMinutes();
bash
php artisan db-vault:install # creates the storage DB if missing, migrates, seeds roles
php artisan db-vault:admin # prompts for name / email / password
bash
php artisan dbvault:pma-vhost # auto-detects nginx vs Apache + the FPM socket
php artisan dbvault:pma-vhost --server=apache # force a server