Skip to content

Commit 4b72c7a

Browse files
committed
wip
1 parent c2f0eaa commit 4b72c7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ GET /posts?include=author&fields[posts]=title,excerpt&fields[users]=name
438438

439439
Resources return a maximal attribute payload when [sparse fieldsets](#sparse-fieldsets) are not in use i.e. all declared attributes on the resource are returned. If you prefer you can make the use of sparse fieldsets required in order to retrieve _any_ attributes.
440440

441-
You may call the `minimalAttributes()` method in an application service provider.
441+
You may call the `useMinimalAttributes()` method in an application service provider.
442442

443443
```php
444444
<?php
@@ -452,7 +452,7 @@ class AppServiceProvider extends ServiceProvider
452452
{
453453
public function boot()
454454
{
455-
JsonApiResource::minimalAttributes();
455+
JsonApiResource::useMinimalAttributes();
456456

457457
// ...
458458
}

0 commit comments

Comments
 (0)