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

enhancement: Be able to show customized attribute from User #17

Open
robsoncombr opened this issue Apr 6, 2017 · 2 comments
Open

enhancement: Be able to show customized attribute from User #17

robsoncombr opened this issue Apr 6, 2017 · 2 comments

Comments

@robsoncombr
Copy link

Hello.

On user-selector.blade.php you use the 'name' attribute to show available users.

In my system it comes blank, because I don't save names in User model.

I would like to suggest a change, we could be able to specify what user attribute we want to display in selector, for example on my case I would like to show 'username' other people could prefer 'email' etc.

It would be nice to have this option in configuration file.

Thank you.

Robson

@robsoncombr robsoncombr changed the title enhancement: Allow specify the field to be enhancement: Be able to show customized attribute from User Apr 6, 2017
@krve
Copy link
Contributor

krve commented Apr 6, 2017

Yeah, we talked about simply publishing the view so you could change it however you see fit.

@robsoncombr
Copy link
Author

Something personal, I do not like to have several views published in my resources folder.. Mainly because the package is not loaded in production so there is no reason to have views published. I would still believe that a simple variable in config to set the attribute we wish to show would be the best solution, but again only something personal.
Thank you.

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

No branches or pull requests

3 participants