hpolthof/laravel-eloquent-settings

Allow for dynamic blobbed settings in Eloquent models.
52 1
Install
composer require hpolthof/laravel-eloquent-settings
Latest Version:v0.1.7
PHP:>=5.4.0
License:GPL2
Last Updated:Aug 1, 2019
Links: GitHub  ·  Packagist
Maintainer: hpolthof

Allow for dynamic blobbed settings in Eloquent models.

This package was created for an internal project, but as the idea is reusable, I encourage others to make use of this package.

The main goal was to create a way to store variables dynamicly into a database field without having to rewrite the database structure.

Usage

Just use the HasSettings trait in your Eloquent model and add a field named settings to your table with a type of MEDIUMTEXT.

You can also use another field name, but be sure to set the protected $settingsField to that specific fieldname.

Related Packages

ablunier/laravel-database

Laravel database utilities package. Repository, cache, abstraction layer.

4,438 1
czim/laravel-pxlcms

Laravel adapter for the PXL CMS

1,634 2
czim/laravel-repository

Repository for Laravel (inspired by and indebted to Bosnadev/Repositories)

114,134 52
czim/laravel-filter

Filter for Laravel Eloquent queries, with support for modular filter building

75,970 89
baum/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

1,657,355 2,224