luminark / serializable-values by mvrkljan

Luminark Serializable Values package.
70
0
2
Package Data
Maintainer Username: mvrkljan
Maintainer Contact: mvrkljan@gmail.com (Martin Vrkljan)
Package Create Date: 2015-12-17
Package Last Update: 2015-12-21
Language: PHP
License: MIT
Last Refreshed: 2024-04-22 03:04:47
Package Statistics
Total Downloads: 70
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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