This repository was archived by the owner on Jul 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-54
lines changed
Expand file tree Collapse file tree 1 file changed +2
-54
lines changed Original file line number Diff line number Diff line change 11# Installation
22
3- The installation process slightly differs depending on your Laravel version. Please look at the install guide with the Laravel version you're using.
4-
5- ## Laravel 5.0 - 5.1
6-
7- Insert the ` AdldapAuthServiceProvider ` into your ` config/app.php ` file:
8-
9- ``` php
10- Adldap\Laravel\AdldapAuthServiceProvider::class,
11- ```
12-
13- Publish the auth configuration:
14-
15- ``` bash
16- php artisan vendor:publish --provider " Adldap\Laravel\AdldapAuthServiceProvider"
17- ```
18-
19- Change the auth driver in ` config/auth.php ` to ` ldap ` :
20-
21- ``` php
22- 'driver' => 'ldap',
23- ```
24-
25- ## Laravel 5.2 - 5.4
26-
27- Insert the ` AdldapAuthServiceProvider ` into your ` config/app.php ` file:
28-
29- ``` php
30- Adldap\Laravel\AdldapAuthServiceProvider::class,
31- ```
32-
33- Publish the auth configuration file:
34-
35- ``` bash
36- php artisan vendor:publish --provider " Adldap\Laravel\AdldapAuthServiceProvider"
37- ```
38-
39- Open your ` config/auth.php ` configuration file and change the following:
40-
41- Change the ` driver ` value inside the ` users ` authentication provider to ` ldap ` :
42-
43- ``` php
44- 'providers' => [
45- 'users' => [
46- 'driver' => 'ldap', // Changed from 'eloquent'
47- 'model' => App\User::class,
48- ],
49- ],
50- ```
51-
52- ## Laravel 5.5
53-
54- When using Laravel 5.5, the service providers are registered automatically,
55- however you will still need to publish the configuration file using the
56- command below:
3+ To start configuring the authentication driver, you will need
4+ to publish the configuration file using the command below:
575
586``` bash
597php artisan vendor:publish --provider " Adldap\Laravel\AdldapAuthServiceProvider"
You can’t perform that action at this time.
0 commit comments