mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 00:54:04 +00:00
* Invalidate resolver cache on delete * Fix code style (php-cs-fixer) --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
16 lines
345 B
PHP
16 lines
345 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Database\Concerns;
|
|
|
|
use Stancl\Tenancy\Tenancy;
|
|
|
|
trait InvalidatesResolverCache
|
|
{
|
|
public static function bootInvalidatesResolverCache(): void
|
|
{
|
|
static::saved(Tenancy::invalidateResolverCache(...));
|
|
static::deleting(Tenancy::invalidateResolverCache(...));
|
|
}
|
|
}
|