Commit 278297bf authored by stanislav.goldmann's avatar stanislav.goldmann

Updated readme.md and example.md

parent f542f6bd
......@@ -90,14 +90,20 @@ use `required` on both username and password.
# 2. Configure the routes
Note: It is important to place these views in the 'web' middleware!
Otherwise sessions will not persist.
```php
Route::get('/', function () {
return view('home');
});
Route::get('/login', 'AuthController@getLogin');
Route::post('/login', 'AuthController@postLogin');
Route::get('/logout', 'AuthController@getLogout');
Route::group(['middleware' => ['web']], function () {
Route::get('/login', 'AuthController@getLogin');
Route::post('/login', 'AuthController@postLogin');
Route::get('/logout', 'AuthController@getLogout');
});
// Register your Routes to be accessed only with authentication
Route::group(['middleware' => 'auth'], function () {
......
......@@ -3,7 +3,9 @@
# ldap-auth
Very basic **READ ONLY** LDAP authentication driver for [Laravel 5.2+](http://laravel.com/)
Very basic **READ ONLY** LDAP authentication driver for [Laravel 5.2+](http://laravel.com/)
Look **[HERE]**(https://github.com/krenor/ldap-auth/tree/1.1.0) for the package for Laravel 5.1
## Installation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment