W3cubDocs

/Laravel 8

DatabaseTransactions

trait DatabaseTransactions (View source)

Methods

void beginDatabaseTransaction()

Handle database transactions on the specified connections.

array connectionsToTransact()

The database connections that should have transactions.

Details

void beginDatabaseTransaction()

Handle database transactions on the specified connections.

Return Value

void

protected array connectionsToTransact()

The database connections that should have transactions.

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Testing/DatabaseTransactions.html