From a3fa8990feca1d93523c60ef65ab5d55ace00f1d Mon Sep 17 00:00:00 2001 From: Roussel Xavier Date: Wed, 20 Jan 2016 15:11:14 +0100 Subject: [PATCH] add Auth provider to Service Provider --- src/LdapServiceProvider.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/LdapServiceProvider.php b/src/LdapServiceProvider.php index 6a35f7c..47c4f4b 100644 --- a/src/LdapServiceProvider.php +++ b/src/LdapServiceProvider.php @@ -1,6 +1,8 @@ publishes([ __DIR__ . '/config/ldap.php' => config_path('ldap.php'), ]); + + Auth::provider('ldap', function ($app, array $config) { + return new LdapAuthUserProvider($app['hash'], $config['model']); + }); } /**