aramayis_m

Aramayis

@aramayis_m

Laravel Developer | I can develop a website of any complexity for you | I am ready to join an interesting development projects and am also considering full-time job

10 Posts 48 Views

0 / 255

The migrate:fresh and migrate:refresh commands can be destructive if misused even locally. For example, using the migrate:fresh command, you can modify and re-migrate migrations. It is necessary to change only those migrations that don't exist in the remote repository, otherwise, the changes will not be applied to the production server and to other developers. Because most likely these migrations have already been migrated there.

I created a package that checks whether a migration exists on a remote repository or not. Also, my package checks if you have migrated migrations locally that have been modified by other developers when you use the git pull command. The package tracks changes based on Git.

I would like to get feedback from Laravel developers. Will my package be useful for you in practice?

github.com/aramayismirzoyan/laravel-safe-migrations

67

PHP Array Unpacking

With array unpacking, you can merge two or more arrays. In some cases, this may be an alternative to the array_merge() function. Since PHP 8.1, you can merge array that have string key.

You can unpack an array using the ... operator.

#php #backend #tip
image

35