thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

multiple bread for Single table / Condition in Browse data #1926

Closed sah-anshu closed 3 years ago

sah-anshu commented 7 years ago

Description:

Can we add multiple breads for SIngle DB table & Apply diff conditions for browse. Sometime we need to show* some diff data from single table with some diff. conditions.

Steps To Reproduce:

MENU > Tools > Database

Anshu.

akazorg commented 7 years ago

Absolutely. I think this is missing too. I'm up for implementing it.

robbydooo commented 7 years ago

I believe I am having the same issue.

Are you suggesting that you require different fields visible to different groups of users (admin, moderators or similar, etc) for the same table?

I would also need this for the edit view as well as browse. For example to approve a post would require admin vs non admin.

If so then its a plus 1 from me for this also.

Thanks, Rob

akazorg commented 7 years ago

Hi @robbydooo, yes, that scenario is applied in here.

robbydooo commented 7 years ago

Excellent, let me know if I can be of use building this out.

fletch3555 commented 7 years ago

For that scenario @robbydooo, I would strongly encourage you to create permissions and add them to the views. Creating distinct but otherwise identical pages just to distinguish between roles feels like bad design to me.

robbydooo commented 7 years ago

@fletch3555 thanks for your advice, I am still familiarising myself with voyager.

I agree it does sound overkill to have multiple breads for the same model just to show/hide different fields.

I am curious though, how would you create permissions for the ability to edit specific attributes in a model?

It would feel like bad design to me to have to create a permission for every field that you want to show and hide to a given role.

Maybe the better way to do it would be to have views for each role? (Admin, moderator etc.). If you have better suggesting I appreciate them.

Thanks, Rob

akazorg commented 7 years ago

MultBREAD is not for dealing with permissions, but for having different views for the same table - this is impossible at the moment.

fletch3555 commented 7 years ago

Yes, but I was responding directly to his question, which WAS about permissions.

laraveladminpanel commented 6 years ago

[Removed: advertising]

mko-tapptic commented 5 years ago

No updates on this for 2 years? :/

fletch3555 commented 5 years ago

Yes, because it's a feature request that were not ready to act on, and nobody from the community has submitted the feature either

MrCrayon commented 3 years ago

This feature will be available in V2

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.