Skip to content

Commit f4646f9

Browse files
committed
fix broker registration
1 parent f6b1cbd commit f4646f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BackpackServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ public function loadConfigs()
275275

276276
// add the backpack_users password broker to the configuration
277277
$laravelAuthPasswordBrokers = app()->config['auth.passwords'];
278-
$laravelFirstPasswordBroker = current($laravelAuthPasswordBrokers) ? current($laravelAuthPasswordBrokers)['table'] : '';
278+
$laravelFirstPasswordBroker = is_array($laravelAuthPasswordBrokers) && current($laravelAuthPasswordBrokers) ?
279+
current($laravelAuthPasswordBrokers)['table'] :
280+
'';
279281

280282
$backpackPasswordBrokerTable = config('backpack.base.password_resets_table') ??
281283
config('auth.passwords.users.table') ??

0 commit comments

Comments
 (0)