Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dillingham authored Dec 28, 2020
1 parent b46339c commit 130005c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 130005c

Please sign in to comment.