InfyOmLabs / laravel-generator

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

Publish Bug #49

Closed phillipmadsen closed 8 years ago

phillipmadsen commented 8 years ago

php artisan infyom.publish:templates

Does not publish common template files. So common stubs are not being added to view folder.

Recap of stubs not publishing

  1. _views directory_ (also gnerator throws error because its looking for table.stub and you have them named table.blade.stub and same thing with the other view)
  2. _common directory_
mitulgolakiya commented 8 years ago

@phillipmadsen I am not able to get table.stub and table.blade.stub thing. Can you describe it bit more ? Also I have added a support for copy views directory.

You mean common directory by the directory contains errors.blade.php and paginate.blade.php ?

If yes, then why you need to publish that folder ? Because even it will not reflect the changes, because those are loaded as views from static directory of core-templates over here.

If you want to use your own errors and paginate then you should create it in your views directory and then customize templates to you those views.