From 130005c1d51eb80e9695db5db1dd27531ccf4399 Mon Sep 17 00:00:00 2001 From: Brian Dillingham Date: Mon, 28 Dec 2020 18:15:11 -0500 Subject: [PATCH] Update readme.md --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 4a6f774..51d221f 100644 --- a/readme.md +++ b/readme.md @@ -35,9 +35,9 @@ AttachMany::make('Field Name', 'relationshipName', RelatedResource::class); ### Display on detail: -This package provides the UI for the create / edit view that BelongsToMany does not. +This package only provides the create / edit views that BelongsToMany does not. -However, the BelongsToMany should be used for displaying the table on detail views. +BelongsToMany should be used for displaying the table on detail views. ```php public function fields(Request $request) @@ -99,12 +99,12 @@ The method must be a camel cased version of the attribute name, followed by `Syn public function fields(Request $request) { return [ - AttachMany::make('Related Authors'), + AttachMany::make('Permissions'), ]; } ``` -would require a method on the resource called `relatedAuthorsSynced()`. +Passes $changes to ``permissionsSynced` on the same resource. ### Authorization