3

I'd like to modify the Code component of Laravel Nova. For example in the file: vendor/laravel/nova/resources/js/components/Detail/CodeField.vue

I'd like to modify the config object near the bottom, specifically, I'd like to change the following line to false:

indentWithTabs: true,

How would I go about modifying this value and having it persist with the ephemeral nature of the vendor folder?

Francisco
  • 10,918
  • 6
  • 34
  • 45
Mark Shust at M.academy
  • 6,300
  • 4
  • 32
  • 50

1 Answers1

1

I do not think that you can "modify" an existing Field, but you can create the same Field containing the same logic, and adding your customizations as described here.

You can also check if you're able to extend a custom field and override it - as described here.

You could also try to apply this change in the root repository and check if the maintainers of nova will apply this change.

brokedid
  • 879
  • 2
  • 10
  • 35