for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xethron\MigrationsGenerator\Syntax;
class DroppedTable
{
/**
* Get string for dropping a table
*
* @param $tableName
* @param null $connection
* @return string
*/
public function drop($tableName, $connection = null)
if (!is_null($connection)) $connection = 'connection(\''.$connection.'\')->';
return "Schema::{$connection}drop('$tableName');";
}