PHP code example of walker-development / ldap-auth
1. Go to this page and download the library: Download walker-development/ldap-auth library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
walker-development / ldap-auth example snippets
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'ldap-users',
],
],
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
'ldap-users' => [
'driver' => 'ldap',
'model' => \WalkerDevelopment\LdapAuth\Objects\LdapUser::class,
],
]