Laravel User Settings - Simple and persistent boolean settings per user
This package has been developed to help you store simple boolean settings (true/false or yes/no settings) per user.
Only 1 additional column for multiple settings.
Settings are stored as binary.
Can be used on all models.
Laravel user settings only requires 1 additional column (bigint) per entity. All settings are stored in this column as a binary value. By using the bitwise operators in PHP we are able to store multiple settings in a single column without extra coding/decoding or multiple queries.
Searching for enabled settings is supported by MySQL as can be found here.
This post is submitted by one of our members. You may submit a new post here.