Customize Laravel Nova generation stubs
v5Laravel Nova uses stub files to generate the boilerplate code for resources, actions, filters, lenses, and metrics. To apply common modifications automatically to these generated files, you can publish the default Nova stubs to your application and modify them.
Running the publish command copies the stub files into the ./stubs/nova directory. If a specific stub file is deleted from this directory, Nova will revert to using its internal default version for that specific class.
php artisan nova:stubs