Download the PHP package maxkalahur/laravel-model-settings without Composer
On this page you can find all versions of the php package maxkalahur/laravel-model-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download maxkalahur/laravel-model-settings
More information about maxkalahur/laravel-model-settings
Files in maxkalahur/laravel-model-settings
Download maxkalahur/laravel-model-settings
More information about maxkalahur/laravel-model-settings
Files in maxkalahur/laravel-model-settings
Vendor maxkalahur
Package laravel-model-settings
Short Description This Laravel package allows you to attach settings to Laravel Models, save them in DB and encrypt.
License MIT
Package laravel-model-settings
Short Description This Laravel package allows you to attach settings to Laravel Models, save them in DB and encrypt.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-model-settings
laravel-model-settings
This Laravel package allows to:
- attach settings to Laravel Models
- store model settings in DB
- encrypt settings in case of need with default Laravel's encryption via APP_KEY
Data types that can be used in CustomSettings:
bool
int
double
string
NULL
Laravel versions supported: 8+
Instalation
Usage Instructions
Add Trait HasCustomSettings
and an attribute array $customSettings
to the Model.
Methods of custom settings:
setCustomSetting( string $key, $val, bool $is_encrypted)
getCustomSetting( string $key )
deleteCustomSetting( string $key )
getAllCustomSettings()
deleteAllCustomSettings()
Eagier loading
Encription: ENV APP_KEY
is used for encryption, so please keep it safely.
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-model-settings with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/encryption Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/encryption Version ^8.0|^9.0|^10.0|^11.0|^12.0
The package maxkalahur/laravel-model-settings contains the following files
Loading the files please wait ....