File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class FilamentDeveloperLoginsPlugin implements Plugin
23
23
/**
24
24
* @var array<string, string>
25
25
*/
26
- public array $ users = [];
26
+ public CLosure | array $ users = [];
27
27
28
28
public Closure | string | null $ redirectTo = null ;
29
29
@@ -105,11 +105,11 @@ public function getSwitchable(): bool
105
105
}
106
106
107
107
/**
108
- * @param array<string, string> $users
108
+ * @param CLosure | array<string, string> $users
109
109
*
110
110
* @return $this
111
111
*/
112
- public function users (array $ users ): static
112
+ public function users (Closure | array $ users ): static
113
113
{
114
114
$ this ->users = $ users ;
115
115
@@ -121,7 +121,7 @@ public function users(array $users): static
121
121
*/
122
122
public function getUsers (): array
123
123
{
124
- return $ this ->users ;
124
+ return $ this ->evaluate ( $ this -> users ) ;
125
125
}
126
126
127
127
public function redirectTo (Closure | string $ redirectTo ): static
You can’t perform that action at this time.
0 commit comments