You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Class "\Modules\Post\Providers\PostServiceProvider" not found
at vendor\laravel\framework\src\Illuminate\Foundation\Application.php:924
920▕ * @return \Illuminate\Support\ServiceProvider
921▕ /
922▕ public function resolveProvider($provider)
923▕ {
➜ 924▕ return new $provider($this);
925▕ }
926▕
927▕ /*
928▕ * Mark the given provider as registered.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I delete any module(deleting Post folder) I get the following error:
Error
Class "\Modules\Post\Providers\PostServiceProvider" not found
at vendor\laravel\framework\src\Illuminate\Foundation\Application.php:924
920▕ * @return \Illuminate\Support\ServiceProvider
921▕ /
922▕ public function resolveProvider($provider)
923▕ {
➜ 924▕ return new $provider($this);
925▕ }
926▕
927▕ /*
928▕ * Mark the given provider as registered.
1 vendor\laravel\framework\src\Illuminate\Foundation\Application.php:858
Illuminate\Foundation\Application::resolveProvider("\Modules\Post\Providers\PostServiceProvider")
2 vendor\nasirkhan\module-manager\src\ModuleManagerServiceProvider.php:97
Illuminate\Foundation\Application::register("\Modules\Post\Providers\PostServiceProvider")
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
I've searched in the config/app.php file and composer.json file for any configuration but didn't find it. What am i missing?
Beta Was this translation helpful? Give feedback.
All reactions