Skip to content

Commit

Permalink
Docs correction
Browse files Browse the repository at this point in the history
  • Loading branch information
santigarcor committed Sep 25, 2016
1 parent 880d5e2 commit 36dd7ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/usage/concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ Now we just need to add \ ``Permission``\s to those \ ``Role``\s:
$editUser->save();
$admin->attachPermission($createPost);
// equivalent to $admin->perms()->sync([$createPost->id]);
// equivalent to $admin->permissions()->sync([$createPost->id]);
$owner->attachPermissions([$createPost, $editUser]);
// equivalent to $owner->perms()->sync([$createPost->id, $editUser->id]);
// equivalent to $owner->permissions()->sync([$createPost->id, $editUser->id]);
Without Groups
--------------
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/soft_deleting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ The default migration takes advantage of ``onDelete('cascade')`` clauses within
// Force Delete
$role->users()->sync([]); // Delete relationship data
$role->perms()->sync([]); // Delete relationship data
$role->permissions()->sync([]); // Delete relationship data
$role->forceDelete(); // Now force delete will work regardless of whether the pivot table has cascading delete

0 comments on commit 36dd7ff

Please sign in to comment.