RFreij / laravel-synchronize by Netcreaties

Laravel Synchronizations will enable you to create one time synchronizations and prevent creating commands you only use once
10,020
2
3
Package Data
Maintainer Username: Netcreaties
Maintainer Contact: info@royfreij.nl (Roy Freij)
Package Create Date: 2019-02-09
Package Last Update: 2020-12-18
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-23 03:10:11
Package Statistics
Total Downloads: 10,020
Monthly Downloads: 15
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Laravel Synchronize

Build Status Downloads Code Intelligence Status Scrutinizer Code Quality

This package gives you the ability to create synchronization files and prevent you from having to write one time use commands when you've got for example: A database structure change that will require you to synchronize the old structure data with the new structure.

Documentation

Installation

The best way to install this package is through your terminal via Composer.

Run the following command from your projects root

composer require netcreaties/laravel-synchronize

Laravel 5.5+

This package supports package discovery.

Execute migrations


Getting started

Publish config

Publishing the config will enable you to overwrite some of the settings this package uses. For example you can define where synchronization files should be stored.

php artisan vendor:publish --provider="LaravelSynchronize\Providers\ServiceProvider" --tag="config"

Publish migration

php artisan vendor:publish --provider="LaravelSynchronize\Providers\ServiceProvider" --tag="migrations"

Execute migrations

php artisan migrate

Usage

Make command

php artisan make:synchronization {name}

Creates the synchronization file at database/synchronizations

Synchronize command

php artisan laravel-sync:synchronize