Skip to content

Commit

Permalink
chore: cache file name
Browse files Browse the repository at this point in the history
  • Loading branch information
jevantang committed May 31, 2024
1 parent 618cb79 commit 510d374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 510d374

Please sign in to comment.