jeudi 11 juillet 2019

How to get collection where all custom fields are filled or not filled?

There are 3 entities: users, specializations, custom fields. One user has one specialization. Administrator can create custom fields. These custom fields will appear in users' profiles and become allowed to fill. Every custom field can be connected to specializations (many to many) - so they will appear only in users' profiles that have these specializations. And if you didn't choose specializations, that field will appear in every users' profiles. When you fill this field, a record in custom_field_user (cf_id, user_id, value) will be created.

So the question is how to find all users (using eloquent, for example) that 1. have one or more available custom_fields unfilled. 2. everything possible is filled.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire