File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ public static function findById(string|int|PrimaryKey $id): self
6868 }
6969
7070 /**
71- * Finds a model instance by its ID.
71+ * Finds a model instance by its ID. Use through {@see Tempest\Router\Bindable}.
7272 */
73- public static function resolve (string | int | PrimaryKey $ id ): self
73+ public static function resolve (string $ input ): self
7474 {
75- return query (self ::class)->resolve ($ id );
75+ return query (self ::class)->resolve ($ input );
7676 }
7777
7878 /**
Original file line number Diff line number Diff line change 22
33namespace Tempest \Router ;
44
5+ /**
6+ * Allows resolving the implementing class through a route parameter.
7+ */
58interface Bindable
69{
10+ /**
11+ * Resolves the implementing class through the given input.
12+ */
713 public static function resolve (string $ input ): self ;
814}
You can’t perform that action at this time.
0 commit comments