-
-
Notifications
You must be signed in to change notification settings - Fork 159
Description
Environment:
- Laravel-Code-Generator Version: 2.2
- Laravel Version: 5.7
Description:
Error message when creating resources from existing database/table
Steps/Commands To Reproduce:
php artisan create:resources Employee --with-migration --table-exists --force
The "employees.json" file was crafted successfully!
Scaffolding resources for employee...
A model was crafted successfully.
ErrorException : compact(): Undefined variable: viewName
at C:\xampp\htdocs\crestapps\vendor\crestapps\laravel-code-generator\src\Commands\CreateControllerCommand.php:398
394| 'template',
395| 'controllerName',
396| 'extends',
397| 'withAuth',
398| 'controllerDirectory'
399| );
400| }
401|
402| /**
Exception trace:
1 compact("formRequestDirectory", "viewDirectory", "viewName", "modelName", "prefix", "perPage", "fileSnippet", "modelDirectory", "langFile", "fields", "withFormRequest", "formRequestName", "force", "resourceFile", "template", "controllerName", "extends", "withAuth", "controllerDirectory")
C:\xampp\htdocs\crestapps\vendor\crestapps\laravel-code-generator\src\Commands\CreateControllerCommand.php:398
2 CrestApps\CodeGenerator\Commands\CreateControllerCommand::getCommandInput()
C:\xampp\htdocs\crestapps\vendor\crestapps\laravel-code-generator\src\Commands\CreateControllerCommand.php:86
Please use the argument -v to see more details.