Can you set field labels in the model or resource?

I am sure this is going to be a stupid question but I find myself having to write the labels for fields over and over (eg in the form, the table, etc). Is there no way to set the labels for a field once in the resource and then have them automatically applied rather than having to use ->label over and over?

Eg for TextInput::make('title'), can I specify either in the model or the resource that 'title' has a label of 'Your Title' rather than constantly having to do TextInput::make('title')->label('Your Title')
Was this page helpful?