<?php str_contains(string $haystack, string $needle): bool
<?php if ($overwrite) { $migrations = collect($this->filesystem->files($dir)) ->filter( fn (SplFileInfo $file) => str_contains($file->getFilename(), $name) ) ->sort();
<?php private function translateColumns(array $columns) { if (isset($columns['id']) && str_contains($columns['id'], 'autoincrement') && str_contains($columns['id'], 'integer')) { unset($columns['id']); }
<?php } if (isset($columns[Model::CREATED_AT]) && isset($columns[Model::UPDATED_AT])) { if (str_contains($columns[Model::CREATED_AT], 'datetimetz')) { $columns['timestampstz'] = 'timestampsTz'; }
<?php } if (isset($columns['deleted_at'])) { if (str_contains($columns['deleted_at'], 'datetimetz')) { $columns['softdeletestz'] = 'softDeletesTz'; }