mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 11:11:31 +00:00
The latest images incorporate all changes previously added by the dockerfiles. The arm image however is still missing/unreliable from the registry and must be built independently.
20 lines
436 B
PHP
20 lines
436 B
PHP
<?php
|
|
|
|
namespace Spatie\Permission\Traits;
|
|
|
|
use Spatie\Permission\PermissionRegistrar;
|
|
|
|
trait RefreshesPermissionCache
|
|
{
|
|
public static function bootRefreshesPermissionCache()
|
|
{
|
|
static::saved(function () {
|
|
app(PermissionRegistrar::class)->forgetCachedPermissions();
|
|
});
|
|
|
|
static::deleted(function () {
|
|
app(PermissionRegistrar::class)->forgetCachedPermissions();
|
|
});
|
|
}
|
|
}
|