Skip to content

Release 5.1.1

Compare
Choose a tag to compare
@papac papac released this 15 Sep 19:51
· 87 commits to 5.x since this release
b397ce4

Add the transaction method

This method aims to execute an SQL transaction around a passed arrow function.

Database::transaction(fn() => $user->update(['name' => '']));

Ref: #255