Skip to content

Commit e53e343

Browse files
author
Ahsaan Muhammad Yousuf
committed
Added Laravel 5.5 support.
1 parent 0b0a378 commit e53e343

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## Installation
66

77
To install this package you will need
8-
- Laravel 5.4
8+
- Laravel 5.5|5.4|5.3|5.2
99
- PHP 5.5
1010

1111
The best way to install this package is with the help of composer. Run
@@ -24,20 +24,7 @@ or install it by adding it to `composer.json` then run `composer update`
2424

2525
Once you have installed this package from the [composer](https://packagist.org/packages/ahsankhatri/wordpress-auth-provider), make sure to follow the below steps to configure.
2626

27-
##### config/app.php
28-
```php
29-
'providers' => [
30-
31-
/*
32-
* Laravel Framework Service Providers...
33-
*/
34-
...,
35-
36-
MrShan0\WordpressAuth\WordpressAuthServiceProvider::class,
37-
]
38-
```
39-
40-
Also, to register authentication guard.
27+
To register authentication guard.
4128

4229
##### config/auth.php
4330
```php
@@ -68,6 +55,21 @@ Also, to register authentication guard.
6855
],
6956
```
7057

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+
7173
## Configuration
7274

7375
`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: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,22 @@
1313
],
1414
"require": {
1515
"php": ">=5.5.9",
16-
"hautelook/phpass": "^1.1",
17-
"laravel/framework": "5.4.*"
16+
"hautelook/phpass": ">=0.3",
17+
"laravel/framework": ">=5.2 <5.6"
1818
},
1919
"autoload": {
2020
"psr-4": {
2121
"MrShan0\\WordpressAuth\\": "src/"
2222
}
23+
},
24+
"config": {
25+
"sort-packages": true
26+
},
27+
"extra": {
28+
"laravel": {
29+
"providers": [
30+
"MrShan0\\WordpressAuth\\WordpressAuthServiceProvider"
31+
]
32+
}
2333
}
2434
}

0 commit comments

Comments
 (0)