PHP code example of a-h-abid / laravel-refresh-module-database

1. Go to this page and download the library: Download a-h-abid/laravel-refresh-module-database 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/ */

    

a-h-abid / laravel-refresh-module-database example snippets


class ExampleTest extends TestCase
{
    use \AHAbid\LaravelRefreshModuleDatabase\RefreshModuleDatabase;
}

protected function runModuleMigration($moduleName)
{
    $this->artisan('module:migrate ' . $moduleName);
}

protected function modulesToMigrate()
{
    return ['ModuleA', 'ModuleB'];
}

protected function shouldMigrateRootFiles()
{
    return true;
}
xml
  <env name="TDD_MIGRATE_ALL_FILES" value="true" />