Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit e77b58c

Browse files
authored
Fix docs for laravel 5.3 Auth controller
- Closes #166
1 parent c1e42e9 commit e77b58c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,17 @@ By default this is set to `email`:
212212
<input type="password" name="password" />
213213
```
214214

215-
You'll also need to add the following to your AuthController if you're not overriding the default postLogin method.
215+
You'll also need to add the following to your AuthController if you're not overriding the default postLogin method:
216+
216217
```php
218+
// In Laravel <= 5.2
217219
protected $username = 'email';
220+
221+
// In Laravel >= 5.3
222+
public function username()
223+
{
224+
return 'email';
225+
}
218226
```
219227

220228
If you'd like to use the users `samaccountname` to login instead, just change your input name and auth configuration:

0 commit comments

Comments
 (0)