Skip to content

Commit b3ec03e

Browse files
authored
Merge pull request #125 from hxn-dev/patch-1
Update db-models-and-eloquent.md
2 parents 1778aa4 + 63f8455 commit b3ec03e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db-models-and-eloquent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class User extends Model
241241
static::created(function ($user) {
242242
// Will send the email only if the
243243
// transaction is committed
244-
DB::afterCoommit(function () use ($user) {
244+
DB::afterCommit(function () use ($user) {
245245
Mail::send(new WelcomeEmail($user));
246246
});
247247
});

0 commit comments

Comments
 (0)