laravel / 10 / api / 10.x / illuminate / database / detectslostconnections.html

DetectsLostConnections

trait DetectsLostConnections (View source)

Methods

bool causedByLostConnection(Throwable $e)

Determine if the given exception was caused by a lost connection.

Details

protected bool causedByLostConnection(Throwable $e)

Determine if the given exception was caused by a lost connection.

Parameters

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/DetectsLostConnections.html