keios/oc-trait-serializable

Serialized object storage trait for OctoberCMS' models.

dev-master / 1.0.x-dev 2015-03-20 03:04 UTC

This package is not auto-updated.

Last update: 2024-11-23 17:59:53 UTC


README

Latest Version Software License Total Downloads

Trait for OctoberCMS' models allowing storage of serialized objects.

Install

Via Composer

$ composer require keios/oc-trait-serializable

Usage

class Account extends Model {           // example model extending October's October\Rain\Database\Model
    use \Keios\Serializable\Serializable;

    protected $serializable = ['fieldToStoreSerializedObjects', 'anotherField'];
}

Security

If you discover any security related issues, please email lukasz@c-call.eu instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.