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