Skip to content

Commit

Permalink
Fixes mass assignment issue when using Eloquent driver. Closes #18.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Aug 2, 2014
1 parent 14969e3 commit 3fdd36b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/changes.md
Expand Up @@ -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.
Expand Down
14 changes: 14 additions & 0 deletions src/Memory/Model.php
Expand Up @@ -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;
}

0 comments on commit 3fdd36b

Please sign in to comment.