luminark/serializable-values

Luminark Serializable Values package.
74
Install
composer require luminark/serializable-values
Latest Version:0.2.2
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
hootlex/laravel-friendships

This package gives Eloquent models the ability to manage their friendships.

120,145 700
spatie/laravel-sluggable

Generate slugs when saving Eloquent models

13,431,666 1,553