docs
docs copied to clipboard
Change attribute of a column
The doc mentions only how to add and remove but not how to change information.
https://backpackforlaravel.com/docs/6.x/crud-cheat-sheet#columns
CRUD::column('user_id')->label('The user'); and the same is for type.
That page too doesn't mention a way like my snippet to change a specific value of a column that already exists.
I need that because I have a field that is a relation with another model so I wasn't sure of the field used by Backpack automatically (at the end it was text wrapped with links), in this way I was able to change the label with something better than based on the column name.