for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Console\Commands\Migrations;
use Illuminate\Console\Command;
abstract class Migration
{
/**
* @param Command $command
*/
abstract public function handle($command);
protected function table($table)
return $this->getConnection()->table($table);
}
protected function getConnection()
return app('db')->connection('old');