Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1224d08

Browse files
AhmedAlaa4611taylorotwell
andauthored
[12.x] Fix Cancelling Batches example (#10760)
* Fix Cancelling Batches example * Update queues.md --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 34d77da commit 1224d08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎queues.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,9 @@ Sometimes you may need to cancel a given batch's execution. This can be accompli
17981798
public function handle(): void
17991799
{
18001800
if ($this->user->exceedsImportLimit()) {
1801-
return $this->batch()->cancel();
1801+
$this->batch()->cancel();
1802+
1803+
return;
18021804
}
18031805

18041806
if ($this->batch()->cancelled()) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /