LostConnectionDetector.php 312 B

12345678910111213141516
  1. <?php
  2. namespace Illuminate\Contracts\Database;
  3. use Throwable;
  4. interface LostConnectionDetector
  5. {
  6. /**
  7. * Determine if the given exception was caused by a lost connection.
  8. *
  9. * @param \Throwable $e
  10. * @return bool
  11. */
  12. public function causedByLostConnection(Throwable $e): bool;
  13. }