1. Go to this page and download the library: Download kalel1500/laravel-db-sync 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/ */
use Thehouseofel\Dbsync\Facades\DbsyncSchema;
// Safely drop a table (handles CASCADE in Oracle/Postgres/SQL Server)
DbsyncSchema::forceDrop('users');
// Truncate one or multiple tables and reset auto-incrementing IDs/Sequences
DbsyncSchema::truncate(['users', 'profiles', 'posts']);
use Thehouseofel\Dbsync\Facades\DbsyncSchema;
DbsyncSchema::connection('oracle_external')->forceDrop('legacy_table');