Skip to content

Commit 04df2e1

Browse files
committed
rename to afterCommit
1 parent c4fe69e commit 04df2e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Concerns/ManagesTransactions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ public function transactionLevel()
324324
}
325325

326326
/**
327-
* Execute the callback within a transaction context.
327+
* Execute the callback after a transaction commits.
328328
*
329329
* @return void
330330
*/
331-
public function withinTransaction($callback)
331+
public function afterCommit($callback)
332332
{
333333
if ($this->transactionsManager) {
334334
return $this->transactionsManager->addCallback($callback);

0 commit comments

Comments
 (0)