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.
Features
-
Only 1 additional column for multiple settings.
-
Settings are stored as binary.
-
Can be used on all models.
-
Customizable.
-
Fast.
Background
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.
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5.3 Laravel 5.6 Laravel 5.5 Laravel 5.4 Laravel 5 Packages Sources