Skip to content

Commit d42284a

Browse files
author
Ahsaan Muhammad Yousuf
committed
Added support for Laravel 5.6 & 5.7
1 parent e53e343 commit d42284a

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

README.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
## Installation
66

77
To install this package you will need
8-
- Laravel 5.5|5.4|5.3|5.2
9-
- PHP 5.5
8+
- Laravel 5.6|5.7
9+
- PHP 7.1
1010

1111
The best way to install this package is with the help of composer. Run
1212
```
@@ -16,7 +16,7 @@ composer require ahsankhatri/wordpress-auth-provider
1616
or install it by adding it to `composer.json` then run `composer update`
1717
```
1818
"require": {
19-
"ahsankhatri/wordpress-auth-provider": "^1.0",
19+
"ahsankhatri/wordpress-auth-provider": "^2.0",
2020
}
2121
```
2222

@@ -55,21 +55,6 @@ To register authentication guard.
5555
],
5656
```
5757

58-
**Laravel 5.5** uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider. Follow following step if you're using less than v5.5.
59-
60-
##### config/app.php
61-
```php
62-
'providers' => [
63-
64-
/*
65-
* Laravel Framework Service Providers...
66-
*/
67-
...,
68-
69-
MrShan0\WordpressAuth\WordpressAuthServiceProvider::class,
70-
]
71-
```
72-
7358
## Configuration
7459

7560
`password_resets` table (from Laravel default auth mechanism) is required to hold reset password token. If you do not have `password_resets` table then use this migration instead

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.5.9",
15+
"php": "^7.1",
1616
"hautelook/phpass": ">=0.3",
17-
"laravel/framework": ">=5.2 <5.6"
17+
"laravel/framework": ">=5.6 <5.8"
1818
},
1919
"autoload": {
2020
"psr-4": {

src/Hashing/WordPressHasher.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use Hautelook\Phpass\PasswordHash;
66
use Illuminate\Contracts\Hashing\Hasher;
7+
use Illuminate\Hashing\AbstractHasher;
78

8-
class WordPressHasher implements Hasher
9+
class WordPressHasher extends AbstractHasher implements Hasher
910
{
1011
protected $hasher;
1112

0 commit comments

Comments
 (0)