Skip to content

Commit

Permalink
rename to afterCommit
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Nov 26, 2020
1 parent c4fe69e commit 04df2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Concerns/ManagesTransactions.php
Expand Up @@ -324,11 +324,11 @@ public function transactionLevel()
}

/**
* Execute the callback within a transaction context.
* Execute the callback after a transaction commits.
*
* @return void
*/
public function withinTransaction($callback)
public function afterCommit($callback)
{
if ($this->transactionsManager) {
return $this->transactionsManager->addCallback($callback);
Expand Down

0 comments on commit 04df2e1

Please sign in to comment.