InfyOmLabs/adminlte-generator

Override stub

dhcmega opened this issue · 2 comments

Hi!
Is it possible to modify/override/use_alternate stub for generating controllers? In my case, I want to add access control, for that, I add a method for checking in each action method in order to verify if the user is authorized.
Thanks!

@dhcmega if you want to modify stub then just use publish templates options and modify the stub files you want to. http://labs.infyom.com/laravelgenerator/docs/5.8/publish-templates

Don't forget to delete stub files that you do not want to modify.

Perfect, I will publish templates. Missed that one. Thanks!!