Skip to content
Discussion options

You must be logged in to vote

Hi @blondie63 ,

In RequestCrudController if use CRUD::column('user') really i see password field of user table, so first question is:
How CRUD decide what user field to show ?

Backpack tries to

  • guess the "identifiable attribute"; That is, the attribute on your Model that is most likely to be unique and memorable so that users can identify an certain entry from it. Like name, email etc.
  • then based on that attribute, it will try to guess the field type

You can see exactly how identifiableAttribute works here: https://github.com/Laravel-Backpack/CRUD/blob/main/src/app/Models/Traits/HasIdentifiableAttribute.php

If it's not correct for your model you can do something like this on your User…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@blondie63
Comment options

Answer selected by tabacitu
Comment options

You must be logged in to vote
1 reply
@tabacitu
Comment options

Comment options

You must be logged in to vote
1 reply
@blondie63
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants