InfyOmLabs / laravel-generator

API and Admin Panel CRUD Generator for Laravel.
https://www.infyom.com/open-source
MIT License
3.78k stars 802 forks source link

Infyom Generator fails to publish config files, in case of using other ui apart from admin-lte #876

Closed muffaddal closed 4 years ago

muffaddal commented 4 years ago

Hi Guys! Thanks for the awesome package! Really enjoying it. It seems there is a problem while generating basic scaffolding for the core-ui templates. For admin-lte it works fine as it is set to default. But fails for coreui.

I followed step by step procedure as mentioned in the docs. The base command works properly and publishes the files in the app Directory, but then layout publish fails.

copy(/var/www/vendor/infyomlabs/adminlte-templates/templates/scaffold/layouts/sidebar.stub): failed to open stream: No such file or directory

mitulgolakiya commented 4 years ago

@muffaddal have you changed the templates variable to coreui-templates in config/infyom/laravel_generator.php?

Because the default config is set to adminlte-templates. so if you are using coreui-templates then you need to change the config. That's the expected behavior.

That's why this is added in the documentation. https://labs.infyom.com/laravelgenerator/docs/7.0/coreui-templates#update-configuration

Hope this helps. Re-open the issue if you need some more help.