public function migrationHasTimestamps()
    {
        $hasTimestamps = false;

        foreach ($this->getMigrations() as $migration) {

            if ($this->isCurrentMigration($migration->name) && !$migration->isMigrated()) {
                // At this point we know the migration is the current one
                // and has not been migrated, so ignore it
                continue;
            }

            if ($hasTimestamps && $migration->withoutTimestamps) {
                // At this point we know that the migration had soft-delete
                // previously, but it was dropped
                $hasTimestamps = false;
            }
            if (!$migration->withoutTimestamps) {
                // At this point we know that the migraton has soft-delete
                $hasTimestamps = true;
            }
        }

        return $hasTimestamps;
    }
public function migrationHasTimestamps()
    {
        $hasTimestamps = false;

        foreach ($this->getMigrations() as $migration) {

            if ($this->isCurrentMigration($migration->name) && !$migration->isMigrated()) {
                // At this point we know the migration is the current one
                // and has not been migrated, so ignore it
                continue;
            }

            if ($hasTimestamps && $migration->withoutTimestamps) {
                // At this point we know that the migration had soft-delete
                // previously, but it was dropped
                $hasTimestamps = false;
            }
            if (!$migration->withoutTimestamps) {
                // At this point we know that the migraton has soft-delete
                $hasTimestamps = true;
            }
        }

        return $hasTimestamps;
    }
public function migrationHasTimestamps ( ) { $ hasTimestamps = false ; foreach ( $ this -> getMigrations ( ) as $ migration ) { if ( $ this -> isCurrentMigration ( $ migration -> name ) && ! $ migration -> isMigrated ( ) ) { // At this point we know the migration is the current one // and has not been migrated, so ignore it continue ; } if ( $ hasTimestamps && $ migration -> withoutTimestamps ) { // At this point we know that the migration had soft-delete // previously, but it was dropped $ hasTimestamps = false ; } if ( ! $ migration -> withoutTimestamps ) { // At this point we know that the migraton has soft-delete $ hasTimestamps = true ; } } return $ hasTimestamps ; }
Checks the migration history to see if the migration
has a timestamps not.

@return bool
Checks the migration history to see if the migration has a timestamps not .