Skip to content

Commit 5ce9c67

Browse files
authored
docs(routing): update outdated route binding method (#1748)
1 parent 0000c99 commit 5ce9c67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/1-essentials/01-routing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ final class Aircraft implements Bindable
175175
{
176176
use IsDatabaseModel;
177177

178-
public function resolve(string $input): self
178+
public static function resolve(string $input): self
179179
{
180-
return self::find(id: $input);
180+
return self::findById(id: $input);
181181
}
182182
}
183183
```
@@ -193,9 +193,9 @@ final class Aircraft implements Bindable
193193
#[IsBindingValue]
194194
public string $callSign;
195195

196-
public function resolve(string $input): self
196+
public static function resolve(string $input): self
197197
{
198-
return self::find(id: $input);
198+
return self::findById(id: $input);
199199
}
200200
}
201201
```

0 commit comments

Comments
 (0)