public function updateMigration($tableName, MigrationCapsule $migrationCapsule)
    {
        $capsules = $this->all();

        foreach ($capsules as $capsule) {
            if ($capsule->tableName == $tableName) {
                $capsule->updateMigration($migrationCapsule);
            }
        }

        $this->write($capsules);

        return $this;
    }
public function updateMigration($tableName, MigrationCapsule $migrationCapsule)
    {
        $capsules = $this->all();

        foreach ($capsules as $capsule) {
            if ($capsule->tableName == $tableName) {
                $capsule->updateMigration($migrationCapsule);
            }
        }

        $this->write($capsules);

        return $this;
    }
public function updateMigration ( $ tableName , MigrationCapsule $ migrationCapsule ) { $ capsules = $ this -> all ( ) ; foreach ( $ capsules as $ capsule ) { if ( $ capsule -> tableName == $ tableName ) { $ capsule -> updateMigration ( $ migrationCapsule ) ; } } $ this -> write ( $ capsules ) ; return $ this ; }
Updates the content of the migration.

@return $this
Updates the content of the migration .