You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 1.x the JSON API controller wraps write operations in a transaction.
For 2.0, move this to an opt-in middleware, that takes the name of the connection and optionally the HTTP method names that it should apply to (which should default to POST, PATCH, DELETE if not provided).
Allow this to be added via fluent routing, e.g. $api->withTransactions()->routes(...).
The Eloquent adapter should always use a transaction, as it knows the connection etc for the transactions... so modify that adapter to always use transactions for write operations.