This package has been developed to help you store simple boolean settings (true/false or yes/no settings) per user.

laravel user settings

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.