We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mpyw/laravel-database-advisory-lock: Advisory Locking Features for Postgres/MySQL on Laravel
It would be safer with this library. Why don't you adopt this?
<?php namespace Jangaraev\EloquentModelAdvisoryLock; use Illuminate\Support\Facades\DB; use Illuminate\Database\ConnectionInterface; trait AppliesAdvisoryLock { /** * @phpstan-template T * @phpstan-param callable(ConnectionInterface): T * @phpstan-return T */ public static function advisoryLocking(callable $callback, int $timeout = 0): mixed { return self::getConnection()->advisoryLocker()->forSession()->withLocking($key, $callback, $timeout); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
mpyw/laravel-database-advisory-lock: Advisory Locking Features for Postgres/MySQL on Laravel
It would be safer with this library. Why don't you adopt this?
The text was updated successfully, but these errors were encountered: