Laravel 12 Module Error after created #2095
Unanswered
ZakaCoding
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hard to say what’s going wrong based on this alone, looks like something’s off with how the module was registered, but without more context it's difficult to pinpoint. Could you share:
If you can, it would be super helpful to have a minimal demo repo where this issue can be reproduced, that’s usually the fastest way to figure it out. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
whoami@CKL-Zaka-Dev:~/www/fleet-management-system-backend$ php artisan module:make ApiMod
INFO Creating module: [ApiMod].
Generating file Modules/ApiMod/module.json .................................................................................. 0.32ms DONE
Generating file Modules/ApiMod/routes/web.php ............................................................................... 3.27ms DONE
Generating file Modules/ApiMod/routes/api.php ............................................................................... 0.18ms DONE
Generating file Modules/ApiMod/resources/views/index.blade.php .............................................................. 0.17ms DONE
Generating file Modules/ApiMod/resources/views/components/layouts/master.blade.php .......................................... 0.13ms DONE
Generating file Modules/ApiMod/config/config.php ............................................................................ 0.14ms DONE
Generating file Modules/ApiMod/composer.json ................................................................................ 0.20ms DONE
Generating file Modules/ApiMod/resources/assets/js/app.js ................................................................... 0.09ms DONE
Generating file Modules/ApiMod/resources/assets/sass/app.scss ............................................................... 0.34ms DONE
Generating file Modules/ApiMod/vite.config.js ............................................................................... 0.19ms DONE
Generating file Modules/ApiMod/package.json ................................................................................. 0.64ms DONE
Generating file Modules/ApiMod/database/seeders/ApiModDatabaseSeeder.php .................................................... 0.23ms DONE
Generating file Modules/ApiMod/app/Providers/ApiModServiceProvider.php ...................................................... 0.08ms DONE
Generating file Modules/ApiMod/app/Providers/EventServiceProvider.php ....................................................... 0.07ms DONE
Generating file Modules/ApiMod/app/Providers/RouteServiceProvider.php ....................................................... 0.07ms DONE
Generating file Modules/ApiMod/app/Http/Controllers/ApiModController.php .................................................... 0.13ms DONE
INFO Module [ApiMod] created successfully.
whoami@CKL-Zaka-Dev:~/www/fleet-management-system-backend$ php artisan module:list
Error
Class "Modules\ApiMod\Providers\ApiModServiceProvider" not found
at vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:205
201▕ * @return \Illuminate\Support\ServiceProvider
202▕ */
203▕ public function createProvider($provider)
204▕ {
➜ 205▕ return new $provider($this->app);
206▕ }
207▕ }
208▕
12 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation{closure}()
+6 vendor frames
19 artisan:16
Illuminate\Foundation\Application::handleCommand()
Beta Was this translation helpful? Give feedback.
All reactions