public static function getProtectedPath($id, $path)
{
- return cache()->tags([FluidbookPublication::class])->rememberForever("fluidbook_protectedpath_" . $id . '_' . $path, function () use ($id, $path) {
- return FluidbookPublication::withoutGlobalScopes()->find($id)->protected_path($id);
+ return cache()->tags([FluidbookPublication::class])->rememberForever("fluidbook_protected_path_" . $id . '_' . $path, function () use ($id, $path) {
+ return FluidbookPublication::withoutGlobalScopes()->find($id)->protected_path($path);
});
}
}