Skip to content

Commit 63f8455

Browse files
authored
Update db-models-and-eloquent.md
fix typo
1 parent 1778aa4 commit 63f8455

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)