Skip to content

Commit

Permalink
Merge pull request #27585 from driesvints/customize-token-guard-keys
Browse files Browse the repository at this point in the history
[5.7] Allow configuration of token guard keys
  • Loading branch information
taylorotwell authored Feb 20, 2019
2 parents 688fbfa + ad027d8 commit f142a1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Auth/AuthManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ public function createTokenDriver($name, $config)
// user in the database or another persistence layer where users are.
$guard = new TokenGuard(
$this->createUserProvider($config['provider'] ?? null),
$this->app['request']
$this->app['request'],
$config['input_key'] ?? 'api_token',
$config['storage_key'] ?? 'api_token'
);

$this->app->refresh('request', $guard, 'setRequest');
Expand Down

0 comments on commit f142a1d

Please sign in to comment.