@@ -2,30 +2,35 @@ LARAVEL PATCHER
22--
33* A (migration like) patcher for a smoldering production update.* <br >
44
5- [ ![ Total Downloads] ( https://img.shields.io/packagist/dt/jalameta/jps -patcher.svg?style=flat-square )] ( https://packagist.org/packages/jalameta/jps-patcher )
6- ![ GitHub Workflow Status] ( https://img.shields.io/github/workflow/status/jalameta/ laravel-patcher/tests?label=tests )
5+ [ ![ Total Downloads] ( https://poser.pugx.org/dentro/laravel -patcher/downloads )] ( https://packagist.org/packages/dentro/yalr )
6+ ![ GitHub Workflow Status] ( https://github.com/digital-entropy/ laravel-patcher/workflows/ tests/badge.svg )
77
8- Already tested on:
9- * Laravel: 6.* | 7.\* | 8.\*
8+ #### Requirements:
9+ * PHP : 8.\*
10+ * Laravel: 9.\*
1011
1112##### Background :
12- Our team has been made a stupid thing that affect database in our project .
13+ Once upon a time, our team do a stupid thing that affect our production database .
1314It was happens many times, and we are usually go tinkering or direct edit on a
14- database to fix those problems. The problem is we need to record those change,
15- so we made this package. Besides, we sometime need to doing
16- bulk insert user for our application, so *** patch*** will be the best solution.
15+ database to fix those problems.
16+ Then, our team leader [ Rifki Alhuraibi] ( https://github.com/veelasky/ ) comes up with
17+ the idea about the package that handle history change of our patch activity (like the
18+ one in database migration), so we made this package.
19+ Also, we commonly need to bulk insert data to our application, this package also help
20+ us in those activity.
1721
1822### INSTALLATION
1923do either of this methods below.
2024* via shell
2125``` shell script
22- composer require jalameta/jps -patcher
26+ composer require dentro/laravel -patcher
2327```
24- * adding ` "jalameta/jps -patcher": "^2 .0" ` to ` composer.json `
28+ * adding ` "dentro/laravel -patcher": "^1 .0" ` to ` composer.json `
2529``` json
2630{
2731 "require" : {
28- "jalameta/jps-patcher" : " ^2.0"
32+ ...
33+ "dentro/laravel-patcher" : " ^1.0"
2934 }
3035}
3136```
@@ -51,9 +56,6 @@ for creating new patch you just need to run these following command
5156` ` ` shell script
5257php artisan make:patch what_do_you_want_to_patch
5358` ` `
54- > wait, do you feels familiar huh? , we do too.
55- The truth is, this package is extending laravel migration.< br>
56- >
5759after run those command, you will see new file in ` patches` folder.
5860Those file will be like:
5961` ` ` php
@@ -76,7 +78,7 @@ class WhatDoYouWantToPatch extends Patch
7678}
7779` ` `
7880Method ` patch` on these file will be filled with your logic.
79- in ` ` ` Jalameta \P atcher\P atch` ` ` there is some useful properties
81+ in ` ` ` Dentro \P atcher\P atch` ` ` there is some useful properties
8082that you can use for supporting your patch such as:
81831. ` $container : \I lluminate\C ontainer\C ontainer`
82842. ` $command : \I lluminate\C onsole\C ommand`
@@ -87,7 +89,7 @@ that you can use for supporting your patch such as:
8789 > $this->command->warn(' i patch something danger! ' );
8890 > $this->command->confirm(' do you wish to continue? ' );
8991 > ```
90- > you can learn more about `\Illuminate\Console\Command` [here](https://laravel.com/api/8 .x/Illuminate/Console/Command.html).
92+ > you can learn more about `\Illuminate\Console\Command` [here](https://laravel.com/api/9 .x/Illuminate/Console/Command.html).
9193
92943. `$logger: \Illuminate\Log\Logger`
9395
@@ -109,7 +111,6 @@ php artisan patcher:status
109111```
110112Example:
111113```shell script
112- my_project on master [$!] via ⬢ v14.14.0 via 🐘 v7.4.11 on 🐳 v19.03.13
113114➜ php artisan patcher:status
114115+------+---------------------------------------+-------+
115116| Ran? | Patch | Batch |
@@ -125,7 +126,6 @@ php artisan patcher:run
125126```
126127Example:
127128```shell script
128- my_project on master [$!] via ⬢ v14.14.0 via 🐘 v7.4.11 on 🐳 v19.03.13
129129➜ php artisan patcher:status
130130Patches table created successfully.
131131Patching: 2020_09_29_190531_fix_double_sections
0 commit comments