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

Suggestion - custom blade templates #15

Closed adrianogl closed 8 years ago

adrianogl commented 8 years ago

In Laravel API/Scaffold/CRUD Generator it was possible

ghost commented 8 years ago

And now also possible!

http://labs.infyom.com/laravelgenerator/docs/generator/generator

And very customizable, if you publish templates!

ghost commented 8 years ago

php artisan infyom:scaffold $MODEL_NAME$

ghost commented 8 years ago

php artisan vendor:publish

you go to vendor/infyomlabs/core-templates/templates and check it

you can even copy fields folder to app/resources/infyom/infyom-generator-templates(if you didn't change it on config) , and the command will use this, when finds it. if not, uses the ones from vendor

ghost commented 8 years ago

Pardon me,

php artisan infyom.publish:templates

NightZpy commented 8 years ago

I have published core-template files into app/resources/infyom/infyom-generator-templates and doens't works.

I want change de core-templates to another template 'admintLTE' and doesn't works as in the previous version from this package!

Whats the steps in order?

NightZpy commented 8 years ago

Ok, am solve this, the folder is app/resources/infyom/infyom-generator-templates/scaffold

mitulgolakiya commented 8 years ago

Its already there on doc: http://labs.infyom.com/laravelgenerator/docs/advanced/publish-templates

NightZpy commented 8 years ago

Ok, but doesn't works with views fields auth templates folder, These must be published manually (i.e., copy/paste)!

gustavorojas commented 8 years ago

Hello I want to generate but without template, only the code because I used acacha admin lte template in composer "acacha/admin-lte-template-laravel": "1.*", and when I generate I have many erros and the view don't work

NightZpy commented 8 years ago

@gustavorojas you can publish the templates used by laravel-generator with php artisan infyom.publish:layout command, and then edit with acacha :D