/** * Drop a database table from the schema. * * @param string $table * @return void */ public static function drop($table) { $table = new Schema\Table($table); // To indicate that the table needs to be dropped, we will run the // "drop" command on the table instance and pass the instance to // the execute method as calling a Closure isn't needed. $table->drop(); return static::execute($table); }
public static function drop($table, $connection = null) { $table = new Schema\Table($table); $table->on($connection); $table->drop(); return static::execute($table); }