Allowed Fields
By default, Framework\Crud allows every database column and all model relations (that have a defined return type) to be filtered.
you can overwrite the allowed columns as follows:
any field other than email, mobile, or posts will be rejected when filtering.
Overwrite Allowed Fields
to overwrite allowed fields in the controller add filterFields
or sortFields
before calling filter or sort method.
filterFields and sortFields will overwrite fields defined in the model.
Last updated