docs icon indicating copy to clipboard operation
docs copied to clipboard

Change attribute of a column

Open Mte90 opened this issue 1 year ago • 2 comments

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.

Mte90 avatar Oct 15 '24 16:10 Mte90

Hello @Mte90

Maybe you need to check this docs for columns?

Cheers.

jcastroa87 avatar Oct 15 '24 17:10 jcastroa87

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.

Mte90 avatar Oct 16 '24 08:10 Mte90