You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@
5
5
|**Laravel**|**wordpress-auth-driver-laravel**|
6
6
|---|---|
7
7
| 5.2 to 5.5 | ^1.0 |
8
-
| 5.6 to 5.7| ^2.0 |
8
+
| 5.6 to 5.8| ^2.0 |
9
9
10
10
## Installation
11
11
12
12
To install this package you will need
13
-
- Laravel 5.6|5.7 ([for older versions of laravel](https://github.com/ahsankhatri/wordpress-auth-driver-laravel/tree/v1))
13
+
- Laravel 5.6|5.7|5.8 ([for older versions of laravel](https://github.com/ahsankhatri/wordpress-auth-driver-laravel/tree/v1))
14
14
- PHP 7.1
15
15
16
16
The best way to install this package is with the help of composer. Run
@@ -127,6 +127,9 @@ class CreatePasswordResetsTable extends Migration
127
127
## Extension
128
128
Alternatively, if you want to use a custom user model, you should have it extend `MrShan0\WordpressAuth\Models\WordpressUser` and specify the name of your model in `config/auth.php` under `providers` -> `wordpress` -> `model`.
129
129
130
+
## Customization
131
+
If you've renamed your `user_email` column of wordpress database, you need to first publish configurations of this package if you've not already, extend the model as mentioned above and make sure you've override your changes in your `$fillable` property and `config/wordpress-auth.php` config file which is being used for authentication scaffolding and sending notifications.
132
+
130
133
## Usage
131
134
You need to define `wordpress`**guard** explicitly to load the driver.
132
135
### Examples
@@ -155,6 +158,30 @@ You may also change default guard in `config/auth.php` then your code will look
155
158
Auth::loginUsingId(5);
156
159
```
157
160
161
+
If you haven't set default guard and wanted to take advantage of **Password Resets** (Auth Scaffolding) in laravel. You may need to define `guard` and `broker` explicitly in `Auth/ForgotPasswordController.php` and `Auth/ResetPasswordController.php` as
162
+
163
+
```php
164
+
/**
165
+
* Get the broker to be used during password reset.
0 commit comments