Skip to content

Commit

Permalink
Fix typo and incorrect model in README (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplhomer authored Oct 18, 2022
1 parent 48d7833 commit f4535d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Spotlight expects a collection of `SpotlightSearchResult` objects. The `Spotligh
the result identifier, name and description.

Every dependency will have access to the already defined dependencies. So in the example below, you can see
that `searchFoobar` has access to the `Team the user has chosen. This allows for scoped dependency searching.
that `searchFoobar` has access to the `Team` the user has chosen. This allows for scoped dependency searching.

```php
use LivewireUI\Spotlight\Spotlight;
Expand All @@ -207,9 +207,9 @@ class CreateUser extends SpotlightCommand
);
}

public function searchFoobar($query, User $user)
public function searchFoobar($query, Team $team)
{
// Given Foobar is the second dependency it will have access to any resolved depedencies defined earlier. In this case we can access the User which was chosen.
// Given Foobar is the second dependency it will have access to any resolved depedencies defined earlier. In this case we can access the Team which was chosen.
}

public function searchTeam($query)
Expand Down

0 comments on commit f4535d6

Please sign in to comment.