luminark/serializable-values

Luminark Serializable Values package.
74
Install
composer require luminark/serializable-values
Latest Version:0.2.2
Laravel:5
License:MIT
Last Updated:Dec 21, 2015
Links: GitHub  ·  Packagist
Maintainer: mvrkljan

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

Related Packages

luminark/url

Luminark URL package.

11 0
sofa/hookable

Laravel Eloquent hooks system.

2,049,184 65
volosyuk/simple-eloquent

Adaptation of eloquent for retrieving its attributes

117,433 55
gzero/eloquent-tree

Eloquent Tree is a tree model for Laravel Eloquent ORM.

59,480 131
martinbean/laravel-sluggable-trait

A trait you can apply to Eloquent models to have slugs automatically generated o...

49,105 24

Version History

Version Released Laravel License
0.2.2 5.* MIT
0.2.1 5.* MIT
0.2 5.* MIT
0.1.1 5.* MIT
0.1.0 5.* MIT