TABLE OF CONTENT
Legacy Publish Templates Docs
Click Here for docs for laravel-generator version < 5.0.
Customize Generator Templates
Generator comes with a great flexibility of modifying and customizing the stub files.
For example, If you want to add some custom code into your generated file, then you can publish the view templates and modify it the way you want.
Laravel Generator uses the view system of Laravel, so you can use Overriding Package Views of Laravel and publish views.
It will publish all views under
resources/views/vendor/laravel-generator directory. Once views are published, you can make the changes you want.
Publish Laravel Generator Templates
To publish laravel-generator-templates, run the following command,
php artisan vendor:publish --tag=laravel-generator-templates
Note: Keep only those templates that you want to change. Remove the templates that you are not going to change.
Publish AdminLTE Templates
To Publish AdminLTE Templates stub view files,
php artisan vendor:publish --tag=adminlte-templates
AdminLTE templates also has some common views which are used across all module CRUDs, like, Errors, Pagination, etc.
php artisan vendor:publish --tag=adminlte-views
Publish Swagger Generator Templates
To Publish Swagger Generator Templates stub view files,
php artisan vendor:publish --tag=swagger-generator-templates