Skip to content

Commit

Permalink
Updated installation steps fixes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaDens committed Sep 1, 2015
1 parent 09b4bd2 commit 4f45c53
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ Provides an solution for authentication users with LDAP for Laravel 5.x. It uses
```js
composer require dsdevbe/ldap-connector:3.*
```


1. Add the service provider in the app configuration by opening `config/app.php`, and add a new item to the providers array.

```
Dsdevbe\LdapConnector\LdapConnectorServiceProvider::class
```
1. Change the authentication driver in the Laravel config to use the ldap driver. You can find this in the following file `config/auth.php`

```php
Expand All @@ -38,12 +43,6 @@ Provides an solution for authentication users with LDAP for Laravel 5.x. It uses

Please note that the fields 'admin_username' and 'admin_password' are required for session persistance!

1. Once this is done you arrived at the final step and you will need to add a service provider. Open `config/app.php`, and add a new item to the providers array.

```
'Dsdevbe\LdapConnector\LdapConnectorServiceProvider::class'
```

## Usage
The LDAP plugin is an extension of the Auth class and will act the same as normal usage with Eloquent driver.

Expand All @@ -68,3 +67,4 @@ Laravel documentation: [Authentication Quickstart](http://laravel.com/docs/maste
### Ldap Groups
- `Auth::user()->getGroups()` returns `array` with groups the current user belongs to.
- `Auth::user()->inGroup('GROUPNAME')` returns `boolean` if user belongs to `GROUPNAME`

0 comments on commit 4f45c53

Please sign in to comment.