Skip to content

Commit 266c0a5

Browse files
authored
Merge pull request #4826 from SjorsO/patch-1
Use the word "delete" to improve searchability
2 parents 764a4a5 + 8dd2987 commit 266c0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eloquent-relationships.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ When attaching a relationship to a model, you may also pass an array of addition
10951095

10961096
$user->roles()->attach($roleId, ['expires' => $expires]);
10971097

1098-
Of course, sometimes it may be necessary to remove a role from a user. To remove a many-to-many relationship record, use the `detach` method. The `detach` method will remove the appropriate record out of the intermediate table; however, both models will remain in the database:
1098+
Of course, sometimes it may be necessary to remove a role from a user. To remove a many-to-many relationship record, use the `detach` method. The `detach` method will delete the appropriate record out of the intermediate table; however, both models will remain in the database:
10991099

11001100
// Detach a single role from the user...
11011101
$user->roles()->detach($roleId);

0 commit comments

Comments
 (0)