Skip to content

Commit

Permalink
fix providers class loader
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny authored Apr 6, 2022
1 parent a762c3c commit 953e34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ModulatorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function registerProviders()

// Register the exists providers
foreach ($finder->list as $provider) {
if (class_exists($provider, false)) {
if (file_exists(base_path('a' . substr(str_replace('\\', '/', $provider), 1) . '.php'))) {
$this->app->register($provider);
}
}
Expand Down

0 comments on commit 953e34d

Please sign in to comment.