We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 74e3568 + cc2e691 commit edbc721Copy full SHA for edbc721
src/Requests/WithHeadingFinder.php
@@ -12,9 +12,7 @@ trait WithHeadingFinder
12
public function findHeading(string $attribute, string $default = null)
13
{
14
// In case attribute is used multiple times, grab last Field.
15
- $field = $this
16
- ->newResource()
17
- ->indexFields($this)
+ $field = collect($this->resourceFields($this->newResource()))
18
->where('attribute', $attribute)
19
->last();
20
0 commit comments