Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Mass assignment protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
martink635 committed Oct 16, 2014
1 parent c1a71e6 commit 944b3a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Koterle/Roleable/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ class Permission extends Model
*/
protected $table;

/**
* Mass assignment protection
*
* @var array
*/
protected $fillable = ['name'];

/**
* Sets the table value from the config.
*
Expand Down
7 changes: 7 additions & 0 deletions src/Koterle/Roleable/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ class Role extends Model
*/
protected $table;

/**
* Mass assignment protection
*
* @var array
*/
protected $fillable = ['name'];

/**
* Sets the table value from the config.
*
Expand Down

0 comments on commit 944b3a3

Please sign in to comment.