Skip to content

Commit 46f3c50

Browse files
authored
Merge pull request #545 from Laravel-Backpack/add-database-transaction-docs
add db transaction docs
2 parents e1d19d1 + 0b87eb1 commit 46f3c50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

6.x/crud-how-to.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,3 +993,11 @@ $schedule->command('backpack:purge-temporary-files')->hourly();
993993
```
994994

995995
After adding this, you need to setup a cron job that will process the Laravel scheduler. You can manually run it in development with `php artisan schedule:run`. For production, you can setup a cron job take care of it for you. You can read more about it [here](https://laravel.com/docs/10.x/scheduling#running-the-scheduler).
996+
997+
<a name="enable-database-transactions-for-create-and-update"></a>
998+
### Enable database transactions for create and update
999+
1000+
In v6.6 we introduced the ability to enable database transactions for create and update operations. This is useful if you have a lot of relationships and you want to make sure that all of them are saved or none of them are saved.
1001+
You can enable this feature globaly at `config/backpack/base.php` by enabling `useDatabaseTransactions`.
1002+
1003+
> **Note:** This feature will be enable by default starting `v7`

0 commit comments

Comments
 (0)