File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Database
Upload
[..]
Capsule/
Rename
Del
Concerns/
Rename
Del
Connectors/
Rename
Del
Console/
Rename
Del
DetectsLostConnections.php (722 B)
Edit
Rename
Del
Eloquent/
Rename
Del
Events/
Rename
Del
Grammar.php (8.02 KB)
Edit
Rename
Del
LICENSE.md (1.05 KB)
Edit
Rename
Del
Migrations/
Rename
Del
Query/
Rename
Del
README.md (2.16 KB)
Edit
Rename
Del
Schema/
Rename
Del
Seeder.php (4.62 KB)
Edit
Rename
Del
composer.json (1.94 KB)
Edit
Rename
Del
Edit: DetectsLostConnections.php
<?php namespace Illuminate\Database; use Illuminate\Container\Container; use Illuminate\Contracts\Database\LostConnectionDetector as LostConnectionDetectorContract; use Throwable; trait DetectsLostConnections { /** * Determine if the given exception was caused by a lost connection. * * @param \Throwable $e * @return bool */ protected function causedByLostConnection(Throwable $e) { $container = Container::getInstance(); $detector = $container->bound(LostConnectionDetectorContract::class) ? $container[LostConnectionDetectorContract::class] : new LostConnectionDetector(); return $detector->causedByLostConnection($e); } }
Simpan