laravel-modules: Module [] does not exist!
after creating successful Module i want to make model with this command:
php artisan module:make-model SystemTickets
but i get this error:
Nwidart\Modules\Exceptions\ModuleNotFoundException : Module [] does not exist!
at C:\xampp\htdocs\diabet\vendor\nwidart\laravel-modules\src\Repository.php:382
378| if ($module !== null) {
379| return $module;
380| }
381|
> 382| throw new ModuleNotFoundException("Module [{$name}] does not exist!");
383| }
384|
385| /**
386| * Get all modules as laravel collection instance.
Exception trace:
1 Nwidart\Modules\Repository::findOrFail("")
C:\xampp\htdocs\diabet\vendor\nwidart\laravel-modules\src\Repository.php:489
2 Nwidart\Modules\Repository::getUsedNow()
C:\xampp\htdocs\diabet\vendor\nwidart\laravel-modules\src\Traits\ModuleCommandTrait.php:14
Please use the argument -v to see more details.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (1 by maintainers)
I apologize for my oversight; Some important files were missing… was able to fix it when I run
php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"that copied config.php and stubs\nwidart-stubs filesIt works im on windows 11
Thanks @dcblogdev , It works for me now, I missed that argument there.