change table name in database laravel code example Example: laravel rename table Schema::rename($currentTableName, $newTableName);