fix: 🐛 File di caching sbagliato

This commit is contained in:
Maicol Battistini 2023-05-01 15:20:38 +02:00
parent b399b5d7e2
commit 72ab05cdd9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ abstract class ModuleServiceProvider extends ServiceProvider
{
$slug = static::$slug;
if (empty($slug)) {
$cachedPackages = require app()->getCachedServicesPath();
$cachedPackages = require app()->getCachedPackagesPath();
$slug = array_key_first(Arr::where($cachedPackages, static fn (array $package) => in_array(static::class, $package['providers'], true)));
static::$slug = $slug;
}