Skip to content

Commit 5cd774d

Browse files
authored
Typo fix
1 parent 902b8c2 commit 5cd774d

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
@@ -244,7 +244,7 @@ class User extends Model
244244
static::created(function ($user) {
245245
// Will send the email only if the
246246
// transaction is committed
247-
DB::afterCoommit(function () use ($user) {
247+
DB::afterCommit(function () use ($user) {
248248
Mail::send(new WelcomeEmail($user));
249249
});
250250
});

0 commit comments

Comments
 (0)