@@ -37,18 +37,18 @@ |
||
| 37 | 37 | private function changeUsersDriver() |
| 38 | 38 | { |
| 39 | 39 | $driver = config()->get('auth.providers.users.driver'); |
| 40 | - if (in_array($driver, ['eloquent', 'database',])) { |
|
| 40 | + if (in_array($driver, ['eloquent', 'database', ])) { |
|
| 41 | 41 | config()->set('auth.providers.users.driver', $driver.'MasterPassword'); |
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | private function registerAuthProviders() |
| 46 | 46 | { |
| 47 | - \Auth::provider('eloquentMasterPassword', function ($app, array $config) { |
|
| 47 | + \Auth::provider('eloquentMasterPassword', function($app, array $config) { |
|
| 48 | 48 | return new MasterPassEloquentUserProvider($app['hash'], $config['model']); |
| 49 | 49 | }); |
| 50 | 50 | |
| 51 | - \Auth::provider('databaseMasterPassword', function ($app, array $config) { |
|
| 51 | + \Auth::provider('databaseMasterPassword', function($app, array $config) { |
|
| 52 | 52 | $connection = $app['db']->connection(); |
| 53 | 53 | |
| 54 | 54 | return new MasterPassDatabaseUserProvider($connection, $app['hash'], $config['table']); |