CrestApps / laravel-code-generator

An efficient Laravel code generator, saving time by automating the creation of resources such as views, controllers, routes, migrations, languages, and form-requests. Highly flexible and customizable, it includes a cross-browser compatible template and client-side validation for application modernization.
https://laravel-code-generator.crestapps.com
MIT License
738 stars 158 forks source link

Config files not created, nor template directory created, when running artisan publish #119

Closed ghost closed 5 years ago

ghost commented 5 years ago

Environment:

Description:

On a fresh install of Laravel Code Generator the config file is not created in Laravel's config directory. Also, the template directory is not copied into the resources/laravel-code-generator directory. If I manually move those into their respective directories, the code generator generally works as expected.

Steps/Commands To Reproduce:

1) Run composer require crestapps/laravel-code-generator --dev 2) Run php artisan vendor:publish --provider="CrestApps\CodeGenerator\CodeGeneratorServiceProvider" --tag=default

Content Of The Resource-File:

N/A

MikeAlhayek commented 5 years ago

in 2.3 you don't need to publish your resources unless you want to override the default template of config. If you want to publish the default template to modify it, please use the following command instead

php artisan vendor:publish --provider="CrestApps\CodeGenerator\CodeGeneratorServiceProvider" --tag=default-template

If you want to the config file use the following command

php artisan vendor:publish --provider="CrestApps\CodeGenerator\CodeGeneratorServiceProvider" --tag=config

Please let me know if that fix the issue

redafillali commented 4 years ago

you have to update the documentation for 2.4 version

MikeAlhayek commented 4 years ago

@redafillali not yet. It’s on my todo list. But been busy lately and can’t find time to work on it.

Most of the command are the same. I suggest you follow the 2.2 docs and read the change log from 2.4 to know what changed.

For anyone interested in updating the docs, please reach out