Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
keevitaja committed Feb 20, 2014
1 parent ed9f1d3 commit b1290e1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 35 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Keeper is Laravels native authentication driver "eloquent" extension. It adds ro

Keeper is not CRUD for user/role/permission database manipulation. There are just too many ways people would like to do it. We would end up with another Sentry and tonns of wierd exceptions which need to be catched. And that is no fun...

Keeper requires atleast Laravel 4.1 and PHP 5.4
Keeper requires atleast Laravel 4 and PHP 5.4

## Todo

Expand Down
16 changes: 0 additions & 16 deletions src/Keevitaja/Keeper/Models/Traits/PermissionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,4 @@ public function roles()
{
return $this->belongsToMany('Keevitaja\Keeper\Models\Role');
}

/**
* Find permission scope or throw exception on fail
*
* @param integer $permissionId
*
* @return mixed
*/
public function scopeFindPermission($query, $permissionId)
{
$permission = $query->find($permissionId);

if ( ! is_null($permission)) return $permission;

throw new PermissionNotFoundException('Permission with ID of "' . $permissionId . '" was not found!');
}
}
16 changes: 0 additions & 16 deletions src/Keevitaja/Keeper/Models/Traits/RoleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,4 @@ public function users()
{
return $this->belongsToMany('Keevitaja\Keeper\Models\User');
}

/**
* Find role scope or throw exception on fail
*
* @param integer $roleId
*
* @return mixed
*/
public function scopeFindRole($query, $roleId)
{
$role = $query->find($roleId);

if ( ! is_null($role)) return $role;

throw new RoleNotFoundException('Role with ID of "' . $roleId . '" was not found!');
}
}
4 changes: 2 additions & 2 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
return [

// enable/disable caching
'cache' => false,
'cache' => true,

// idintifier for cache
'cache_id' => 'keevitaja.keeper',
Expand All @@ -18,5 +18,5 @@
'cache_expire' => 10,

// enable/disable cache tags usage
'cache_tags' => false
'cache_tags' => true
];

0 comments on commit b1290e1

Please sign in to comment.