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
2323 /**
2424 * @var array<string, string>
2525 */
26- public array $ users = [];
26+ public CLosure | array $ users = [];
2727
2828 public Closure | string | null $ redirectTo = null ;
2929
@@ -105,11 +105,11 @@ public function getSwitchable(): bool
105105 }
106106
107107 /**
108- * @param array<string, string> $users
108+ * @param CLosure | array<string, string> $users
109109 *
110110 * @return $this
111111 */
112- public function users (array $ users ): static
112+ public function users (Closure | array $ users ): static
113113 {
114114 $ this ->users = $ users ;
115115
@@ -121,7 +121,7 @@ public function users(array $users): static
121121 */
122122 public function getUsers (): array
123123 {
124- return $ this ->users ;
124+ return $ this ->evaluate ( $ this -> users ) ;
125125 }
126126
127127 public function redirectTo (Closure | string $ redirectTo ): static
You can’t perform that action at this time.
0 commit comments