You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,13 @@ class CreateUser extends SpotlightCommand
204
204
{
205
205
return SpotlightCommandDependencies::collection()
206
206
->add(SpotlightCommandDependency::make('team')->setPlaceholder('For which team do you want to create a user?'))
207
-
->add(SpotlightCommandDependency::make('name')->setPlaceholder('How do you want to name this user?')->setType(SpotlightCommandDependency::INPUT));
207
+
->add(SpotlightCommandDependency::make('foobar')->setPlaceholder('Search for second dependency')
208
+
);
209
+
}
210
+
211
+
public function searchFoobar($query, User $user)
212
+
{
213
+
// 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.
208
214
}
209
215
210
216
public function searchTeam($query)
@@ -394,6 +400,12 @@ return [
394
400
];
395
401
```
396
402
403
+
If you want to change the spotlight view, you can also publish the views.
0 commit comments