luminark / serializable-values
Luminark Serializable Values package.
0.2.2
2015-12-21 09:19 UTC
Requires
- illuminate/database: 5.*
- illuminate/support: 5.*
Requires (Dev)
- orchestra/testbench: 3.0.*
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-11-09 18:59:27 UTC
README
#Luminark Serializable Values Package
Enables you to save serialized attribute values on your models. Simply use the HasSerializableValuesTrait
trait on your models, define a values
column on the model table and implement getSerializableAttributes()
method to define which attributes' values can be serialized.
Example:
class Example extends Model { use HasSerializableValuesTrait; protected function getSerializableAttributes() { return ['foo', 'bar']; } }