Support the ongoing development of Laravel.io →
Authentication Database Eloquent
Last updated 2 years ago.
0

If members of the site can only see content that has been published by their group of users then I would simply add a group_id column to the tables containing content and filter the output by the users group.

Last updated 2 years ago.
0

carbontwelve said:

If members of the site can only see content that has been published by their group of users then I would simply add a group_id column to the tables containing content and filter the output by the users group.

So add group_id to every table? O.o Would proberbly make it easier, but it just seems... wrong xD

Last updated 2 years ago.
0

You could in that case have one polymorphic table for group permissions - its the same thing but concentrated into one area.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.