luminark/serializable-values

Luminark Serializable Values package.

0.2.2 2015-12-21 09:19 UTC

This package is not auto-updated.

Last update: 2024-11-09 18:59:27 UTC


README

#Luminark Serializable Values Package

Build Status Code Coverage SensioLabsInsight Scrutinizer

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'];
    }
}