eloquent rename table code example
Example 1: laravel rename table
Schema::rename($currentTableName, $newTableName);
Example 2: rename table migration laravel
Schema::rename($from, $to);
Schema::rename($currentTableName, $newTableName);
Schema::rename($from, $to);