laravel-modules: Issue start.stub and routes.stub . Not found in package

I installed 4.0.0 version and when write: php artisan module:make MyNewModule and:


ErrorException : file_get_contents(/home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/…/Commands/stubs/routes.stub): failed to open stream: No such file or directory

at /home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/Stub.php:106 102| * @return mixed|string 103| */ 104| public function getContents() 105| {

106| $contents = file_get_contents($this->getPath()); 107| 108| foreach ($this->replaces as $search => $replace) { 109| $contents = str_replace(‘$’ . strtoupper($search) . ‘$’, $replace, $contents); 110| }

Exception trace:

1 file_get_contents(“/home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/…/Commands/stubs/routes.stub”) /home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/Stub.php:106

2 Nwidart\Modules\Support\Stub::getContents() /home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/Stub.php:122

Please use the argument -v to see more details.


ErrorException : file_get_contents(/home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/…/Commands/stubs/start.stub): failed to open stream: No such file or directory

at /home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/Stub.php:106 102| * @return mixed|string 103| */ 104| public function getContents() 105| {

106| $contents = file_get_contents($this->getPath()); 107| 108| foreach ($this->replaces as $search => $replace) { 109| $contents = str_replace(‘$’ . strtoupper($search) . ‘$’, $replace, $contents); 110| }

Exception trace:

1 file_get_contents(“/home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/…/Commands/stubs/start.stub”) /home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/Stub.php:106

2 Nwidart\Modules\Support\Stub::getContents() /home/docker/src/blsflow/vendor/nwidart/laravel-modules/src/Support/Stub.php:122

Please use the argument -v to see more details.

Copied from 3.0.0 version in to stubs and worked.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

@rebortec Try to run this: php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider" --force

@rebortec Try to run this: php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider" --force

And plus need run - php artisan config:cache

Looks like you guys have some old keys in your config file. Just like #640 and #688: make sure you compare your config file against the one for the release you are upgrading to.

You should also note that @nWidart follows SemVer, even if Laravel does not. So v5 is a major update from v4, and you should expect breaking changes like this. Always check your config files when updating, not just with this package.