How can I hide a field on the edit form?

I have a field whos value I use to auto generate another model type when the create model is saved. I only want the user to be able to enter a value on creation. How can I hide that specific field on only the edit form?
Solution
->hiddenOn(‘edit)
Was this page helpful?