When the localized is set to true, running commands like infyom:api_scaffold, infyom.publish:layout --localized will show an error that the stub file is missing.
copy(~/laravel/vendor/infyomlabs/adminlte-templates/templates/scaffold/layouts/app_locale.stub): Failed to open stream: No such file or directory
at vendor/infyomlabs/laravel-generator/src/Commands/Publish/PublishBaseCommand.php:20
16▕ if (file_exists($destinationFile) && !$this->confirmOverwrite($destinationFile)) {
17▕ return;
18▕ }
19▕
➜ 20▕ copy($sourceFile, $destinationFile);
21▕
22▕ $this->comment($fileName.' published');
23▕ $this->info($destinationFile);
24▕ }
*** routes added.
ErrorException
file_get_contents(~/laravel/vendor/infyomlabs/adminlte-templates/templates/scaffold/layouts/menu_template_locale.stub): Failed to open stream: No such file or directory
at vendor/infyomlabs/laravel-generator/src/helpers.php:138
134▕ function get_template($templateName, $templateType)
135▕ {
136▕ $path = get_template_file_path($templateName, $templateType);
137▕
➜ 138▕ return file_get_contents($path);
139▕ }
140▕ }
When the localized is set to true, running commands like
infyom:api_scaffold
,infyom.publish:layout --localized
will show an error that the stub file is missing.composer.json:
macOS 12.3 php v8.1.3 Laravel v9.3.1 infyomlabs/adminlte-templates v4.0.0 infyomlabs/laravel-generator v4.0.0 infyomlabs/laravel-generator-helpers v4.0.0 infyomlabs/laravel-ui-adminlte v4.0.0