We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5c906 commit 2369078Copy full SHA for 2369078
README.md
@@ -17,7 +17,7 @@ file app.php in array aliases :
17
`'UpdateBatch' => Mavinoo\UpdateBatch\UpdateBatchFacade::class,`
18
19
20
-# Example
+# Example 1
21
22
```
23
$table = 'users';
@@ -40,3 +40,35 @@ $index = 'id';
40
41
UpdateBatch::updateBatch($table, $value, $index);
42
43
+
44
45
+# Example 2
46
47
+```
48
+$table = 'users';
49
50
+$value = [
51
+ [
52
+ 'id' => 1,
53
+ 'status' => 'active'
54
+ ],
55
56
+ 'id' => 5,
57
+ 'status' => 'deactive',
58
+ 'nickname' => 'Ghanbari'
59
60
61
+ 'id' => 10,
62
+ 'status' => 'active',
63
+ 'date' => Carbon::now()
64
65
66
+ 'id' => 11,
67
+ 'username' => 'mavinoo'
68
+ ]
69
+];
70
71
+$index = 'id';
72
73
+UpdateBatch::updateBatch($table, $value, $index);
74
0 commit comments