Кемеровские программисты php общаются здесь
-
Anonymous
Laravel Nwidart: ошибка при создании модуля
Сообщение
Anonymous »
Код: Выделить всё
Generating file Modules/Page/module.json .............................................. 0ms DONE
Generating file Modules/Page/routes/web.php ........................................... 0ms DONE
Generating file Modules/Page/routes/api.php ........................................... 0ms DONE
Generating file Modules/Page/resources/views/index.blade.php .......................... 0ms DONE
Generating file Modules/Page/resources/views/layouts/master.blade.php ................ 0ms DONE
Generating file Modules/Page/config/config.php ........................................ 0ms DONE
Generating file Modules/Page/composer.json ............................................ 0ms DONE
Generating file Modules/Page/resources/js/app.js ...................................... 0ms FAIL
ErrorException
file_get_contents(/vendor/nwidart/laravel-modules/src/Support/../Commands/stubs/js/app.stub): Failed to open stream: No such file or directory
at vendor/nwidart/laravel-modules/src/Support/Stub.php:106
Код: Выделить всё
* @return mixed|string
*/
public function getContents()
{
$contents = file_get_contents($this->getPath());
foreach ($this->replaces as $search => $replace) {
$contents = str_replace('$' . strtoupper($search) . '$', $replace, $contents);
}
Я попробовал обновить пакет, пытаясь выяснить причину этой ошибки. Модуль создается, но без файлов поставщика услуг.
Подробнее здесь:
https://stackoverflow.com/questions/785 ... ing-module
1728423061
Anonymous
[code]Generating file Modules/Page/module.json .............................................. 0ms DONE
Generating file Modules/Page/routes/web.php ........................................... 0ms DONE
Generating file Modules/Page/routes/api.php ........................................... 0ms DONE
Generating file Modules/Page/resources/views/index.blade.php .......................... 0ms DONE
Generating file Modules/Page/resources/views/layouts/master.blade.php ................ 0ms DONE
Generating file Modules/Page/config/config.php ........................................ 0ms DONE
Generating file Modules/Page/composer.json ............................................ 0ms DONE
Generating file Modules/Page/resources/js/app.js ...................................... 0ms FAIL
ErrorException
file_get_contents(/vendor/nwidart/laravel-modules/src/Support/../Commands/stubs/js/app.stub): Failed to open stream: No such file or directory
at vendor/nwidart/laravel-modules/src/Support/Stub.php:106
[/code]
[code]* @return mixed|string
*/
public function getContents()
{
$contents = file_get_contents($this->getPath());
foreach ($this->replaces as $search => $replace) {
$contents = str_replace('$' . strtoupper($search) . '$', $replace, $contents);
}
[/code]
Я попробовал обновить пакет, пытаясь выяснить причину этой ошибки. Модуль создается, но без файлов поставщика услуг.
Подробнее здесь: [url]https://stackoverflow.com/questions/78552865/laravel-nwidart-giving-error-while-generating-module[/url]