From 510d374ffecef31584cab1897835f8198d1cb8bb Mon Sep 17 00:00:00 2001 From: Jevan Tang <22316055+jevantang@users.noreply.github.com> Date: Fri, 31 May 2024 13:59:36 +0800 Subject: [PATCH] chore: cache file name --- src/Plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin.php b/src/Plugin.php index d6c2c4a..49f650f 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -320,10 +320,10 @@ public function getCachedServicesPath(): string // This checks if we are running on a Laravel Vapor managed instance // and sets the path to a writable one (services path is not on a writable storage in Vapor). if (! is_null(env('VAPOR_MAINTENANCE_MODE', null))) { - return Str::replaceLast('config.php', $this->getSnakeName().'_plugin.php', app()->getCachedConfigPath()); + return Str::replaceLast('config.php', 'plugin_'.$this->getSnakeName().'.php', app()->getCachedConfigPath()); } - return Str::replaceLast('services.php', $this->getSnakeName().'_plugin.php', app()->getCachedServicesPath()); + return Str::replaceLast('services.php', 'plugin_'.$this->getSnakeName().'.php', app()->getCachedServicesPath()); } public function manualAddNamespace()