Access field with dash

Hey y’all,

I want to get some data from the .txt files from our project. Unfortunately there we have a lot of fieldnames containing a dash. How can I access those, since page('x')->some-field(); is not working?

You cannot use dashes in php, you have to use an underscore in your method