Multi-db support
This commit is contained in:
parent
d4f25fe490
commit
bff3160dc2
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ class DatabaseLookup
|
|||
} elseif ($guard == 'api') {
|
||||
if ($token = $request->header('X-Ninja-Token')) {
|
||||
LookupAccountToken::setServerByField('token', $token);
|
||||
} elseif ($email = $request->email) {
|
||||
LookupUser::setServerByField('email', $email);
|
||||
}
|
||||
} elseif ($guard == 'contact') {
|
||||
if ($key = request()->invitation_key) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue