🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:DetectsConcurrencyErrors.php
<?php namespace Illuminate\Database; use Illuminate\Container\Container; use Illuminate\Contracts\Database\ConcurrencyErrorDetector as ConcurrencyErrorDetectorContract; use Throwable; trait DetectsConcurrencyErrors { /** * Determine if the given exception was caused by a concurrency error such as a deadlock or serialization failure. * * @param \Throwable $e * @return bool */ protected function causedByConcurrencyError(Throwable $e) { $container = Container::getInstance(); $detector = $container->bound(ConcurrencyErrorDetectorContract::class) ? $container[ConcurrencyErrorDetectorContract::class] : new ConcurrencyErrorDetector(); return $detector->causedByConcurrencyError($e); } }
Save Changes
Cancel
Create New File
Create New Folder