Skip to content

Commit

Permalink
improve docs for multiple resource per model
Browse files Browse the repository at this point in the history
  • Loading branch information
brentkelly committed Jun 11, 2024
1 parent 943a1be commit 54e4236
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 @@ -177,8 +177,8 @@ class CreateArtistAlbum extends CreateRelatedRecord
// This page also needs to know the ancestor relationship used (just like relation managers):
protected static string $relationship = 'albums';

// We can usually guess the related resource, but if your app has multiple resources
// for this model, you will need to explicitly define the resource
// We can usually guess the nested resource, but if your app has multiple resources for this
// model, you will need to explicitly define it
// public static string $nestedResource = AlbumResource::class;
}
```
Expand All @@ -195,8 +195,8 @@ class AlbumsRelationManager extends RelationManager
{
use NestedRelationManager;

// We can usually guess the related resource, but if your app has multiple resources
// for this model, you will need to explicitly define the resource
// We can usually guess the nested resource, but if your app has multiple resources for this
// model, you will need to explicitly define the it
// public static string $nestedResource = AlbumResource::class;
}
```
Expand Down

0 comments on commit 54e4236

Please sign in to comment.