Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change attribute of a column #610

Open
Mte90 opened this issue Oct 15, 2024 · 2 comments
Open

Change attribute of a column #610

Mte90 opened this issue Oct 15, 2024 · 2 comments

Comments

@Mte90
Copy link

Mte90 commented Oct 15, 2024

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.

@jcastroa87
Copy link
Member

Hello @Mte90

Maybe you need to check this docs for columns?

Cheers.

@Mte90
Copy link
Author

Mte90 commented Oct 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants