Skip to content

luminark/serializable-values

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Luminark Serializable Values package for Eloquent models.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages