PHP code example of brstuff / laravelsqlines
1. Go to this page and download the library: Download brstuff/laravelsqlines 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/ */
brstuff / laravelsqlines example snippets
$log = \LaravelSqlines::
sourceConnection("oracle", "database_name_in_config")
->targetConnection("mysql", "database_name_in_config")
->tables(["table1", "tables2"])
->tmap("table1, new_table_1")
->tmap("table2, new_table_2")
->sync();
bash
php artisan vendor:publish --tag=laravelsqlines.config
php artisan vendor:publish --tag=laravelsqlines.app