Voyager: multiple bread for Single table / Condition in Browse data

Created on 3 Oct 2017  路  12Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.5
  • Voyager Version: 1.0.4
  • PHP Version: 7.1
  • Database Driver & Version: PGSQL

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.

feature v2

Most helpful comment

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

All 12 comments

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

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

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

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

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.

@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

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

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

[Removed: advertising]

No updates on this for 2 years? :/

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

This feature will be available in V2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TPRAsh picture TPRAsh  路  3Comments

popica80 picture popica80  路  3Comments

IvanBohonosiuk picture IvanBohonosiuk  路  4Comments

zzpwestlife picture zzpwestlife  路  3Comments

craigb88 picture craigb88  路  3Comments