Download the PHP package human018/laravel-patch without Composer

On this page you can find all versions of the php package human018/laravel-patch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-patch

Contributors Forks Stargazers Issues MIT License

Laravel Patch

Perform migrations and database patches within your Laravel application


At times you may need to run a database migration and then perform some kind of patch associated with the migration. This package will create both the migration and an associated patch command, it will listen for the migration event and then run the patch command automatically for you.

When might you use this package?

Example 1:

You're changing a model relationship to an immediate relationship (hasMany) rather than a distant relation (hasManyThrough). You need to add a new foreignId column to the target models table and then populate that column with the correct ID's. With this package you can create both the migration and the patch command and then run them within the same migration command.

Index

Usage

Requirements

Download & Installation

Laravel will auto discover the package.

Performing Patches

Once installed a patch can be created by running the following command in line with the regular Laravel make:migration command.

This will generate both the migration and an associated patch command.

The package listens for when a migration event is fired, determines if there is an associated patch command and fires the command.

You will find Patch commands created in your projects 'Commands' folder under the subdirectory 'Patches', where you can perform any tasks that need to be done in line with this migration.

Migration Direction

The migration direction is passed to the Patch Command using the 'method' option.

So if you need to revert some changes you can detect the 'down' direction.

License

This project is licensed under the MIT License


All versions of laravel-patch with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
laravel/framework Version ^8.0|^9.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package human018/laravel-patch contains the following files

Loading the files please wait ....