Skip to content

Commit dd2e2be

Browse files
Laravel 5.8
1 parent 4575886 commit dd2e2be

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
}
1515
],
1616
"require": {
17-
"illuminate/support": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.*|| 5.6.* || 5.7.*",
18-
"illuminate/session": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.*|| 5.6.* || 5.7.*",
19-
"illuminate/events": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.*|| 5.6.* || 5.7.*"
17+
"illuminate/support": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
18+
"illuminate/session": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*",
19+
"illuminate/events": "5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.* || 5.7.* || 5.8.*"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "~5.0 || ~6.0 || ~7.0",
23-
"mockery/mockery": "~0.9.0",
22+
"phpunit/phpunit": "~5.0 || ~6.0 || ~7.0 || ~8.0",
23+
"mockery/mockery": "~0.9.0 || ^1.0",
2424
"orchestra/testbench": "~3.1"
2525
},
2626
"autoload": {

src/Cart.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function add($id, $name = null, $qty = null, $price = null, array $option
116116

117117
$content->put($cartItem->rowId, $cartItem);
118118

119-
$this->events->fire('cart.added', $cartItem);
119+
$this->events->dispatch('cart.added', $cartItem);
120120

121121
$this->session->put($this->instance, $content);
122122

@@ -190,7 +190,7 @@ public function update($rowId, $qty)
190190
$content->put($cartItem->rowId, $cartItem);
191191
}
192192

193-
$this->events->fire('cart.updated', $cartItem);
193+
$this->events->dispatch('cart.updated', $cartItem);
194194

195195
$this->session->put($this->instance, $content);
196196

@@ -211,7 +211,7 @@ public function remove($rowId)
211211

212212
$content->pull($cartItem->rowId);
213213

214-
$this->events->fire('cart.removed', $cartItem);
214+
$this->events->dispatch('cart.removed', $cartItem);
215215

216216
$this->session->put($this->instance, $content);
217217
}
@@ -408,7 +408,7 @@ public function store($identifier)
408408
'content' => serialize($content)
409409
]);
410410

411-
$this->events->fire('cart.stored');
411+
$this->events->dispatch('cart.stored');
412412
}
413413

414414
/**
@@ -438,7 +438,7 @@ public function restore($identifier)
438438
$content->put($cartItem->rowId, $cartItem);
439439
}
440440

441-
$this->events->fire('cart.restored');
441+
$this->events->dispatch('cart.restored');
442442

443443
$this->session->put($this->instance, $content);
444444

0 commit comments

Comments
 (0)