diff --git a/docs/changes.md b/docs/changes.md index d59c7aa..653352f 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -5,6 +5,10 @@ title: Memory Change Log ## Version 2.1 {#v2-1} +### v2.1.6 {#v2-1-6} + +* Fixes mass assignment issue when using Eloquent driver. + ### v2.1.5 {#v2-1-5} * Swap type-hint from `Illuminate\Cache\CacheManager` to `Illuminate\Cache\Repository` to slightly reduce tight-coupling to Laravel app. diff --git a/src/Memory/Model.php b/src/Memory/Model.php index 016c3ec..fe25109 100644 --- a/src/Memory/Model.php +++ b/src/Memory/Model.php @@ -10,4 +10,18 @@ class Model extends Eloquent * @var string */ protected $table = 'orchestra_options'; + + /** + * The attributes that are mass assignable. + * + * @var array + */ + protected $fillable = array('name', 'value'); + + /** + * Indicates if the model should be timestamped. + * + * @var bool + */ + public $timestamps = false; }