Skip to content

Commit

Permalink
Update Docs & Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
santigarcor committed Oct 3, 2017
1 parent 6904aa5 commit 09393ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ To install, configure and learn how to use Laratrust please go to the [Documenta
- Multiple permissions can be attached to roles.
- Roles and permissions verification.
- Roles and permissions caching.
- Events when roles and permissions are attached, detached or synced.
- Multiple roles and permissions can be attached to users within teams.
- Objects ownership verification.
- Multiple guards for the middlewares.
Expand Down
6 changes: 3 additions & 3 deletions docs/usage/concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ Assignment
$owner->syncPermissions([$createPost, $editUser]); // parameter can be a Permission object, array or id
// equivalent to $owner->permissions()->sync([$createPost->id, $editUser->id]);
$owner->syncPermissionsWithoutDetaching([$createPost, $editUser]); // parameter can be a Permission object, array or id
// equivalent to $owner->permissions()->syncWithoutDetaching([$createPost->id, $editUser->id]);
Removal
^^^^^^^

Expand Down Expand Up @@ -123,6 +120,9 @@ Assignment
$user->syncPermissions([$editUser->id, $createPost->id]);
// equivalent to $user->permissions()->sync([$editUser->id, createPost->id]);
$user->syncPermissionsWithoutDetaching([$editUser, $createPost]); // parameter can be a Permission object, array or id
// equivalent to $user->permissions()->syncWithoutDetaching([$createPost->id, $editUser->id]);
Removal
^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion docs/usage/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Usage

concepts
events
middleware
soft_deleting
blade_templates
middleware

0 comments on commit 09393ca

Please sign in to comment.