{"repo":"glorand/laravel-model-settings","free":true,"listed":false,"github":"https://github.com/glorand/laravel-model-settings","clone":"git clone https://github.com/glorand/laravel-model-settings.git","description":"Model Settings for your Laravel app","language":"PHP","stars":919,"topics":["trait","eloquent-models","laravel","settings","laravel-settings"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Model Settings for your Laravel app The package requires PHP 8.2+ and Laravel 12+, and follows the FIG standards PSR-1, PSR-2, PSR-4 and PSR-12 to ensure a high level of interoperability between shared PHP. Bug reports, feature requests, and pull requests can be submitted by following our Contribution Guide. Table of contents - Installation - Upgrading from v8 - Updating your Eloquent Models - Choosing the driver - The field driver - The table driver - The redis driver - Custom drivers - Default Settings - Usage - Check if the settings for the entity is empty (exist) - Check settings (exist) - Get all model's settings - Get a specific setting - Add / Update setting - Check if the model has a specific setting - Remove a setting from a model - Persistence - Using another method name other than settings() - Validation system for settings data - Changelog - Contributing - License Installation Upgrading from v8 Version 9 replaces the three storage-specific traits with a single HasSettings trait and a configuration-driven driver system. See the migration guide for the full checklist. Env (config) variables (.env file) The storage driver used by every model that does not declare its own ( field table redis ) MODEL SETTINGS DRIVER=field Default name for the settings field - when you use the field driver MODEL SETTINGS FIELD NAME=settings Default name for the settings table - when you use the table driver MODEL SETTINGS TABLE NAME=model settings Optional, for the redis driver (named c","default_branch":null,"files":null,"tree":[],"storefront":"/r/glorand","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/glorand/laravel-model-settings/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}