Skip to content

Commit 5c7e503

Browse files
committed
Merge branch 'master' into 3.0
2 parents 3ed7e30 + a73588d commit 5c7e503

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,36 +58,37 @@ You may add the following `aliases` to your `config/app.php`:
5858
```
5959

6060
## CONFIGURATION
61-
62-
Prior to use this package, the table representing the user must be updated with
63-
two new columns, `verified` and `verification_token`.
64-
65-
**It is mandatory to add the two columns on the same table and where the user's
66-
e-mail is stored.**
67-
6861
The model representing the `User` must implement the authenticatable
6962
interface `Illuminate\Contracts\Auth\Authenticatable` which is the default with
7063
the Eloquent `User` model.
7164

7265
### Migration
7366

74-
This package ships with a migration file. To migrate the migration run, the
75-
following command:
67+
The table representing the user must be updated with two new columns, `verified` and `verification_token`.
68+
This update will be performed by the migrations included with this package.
69+
70+
**It is mandatory that the two columns are on the same table where the user's e-mail is stored.**
71+
**Please make sure you do not already have those fields on your user table.**
72+
73+
Run the following command to migrate (all) the migrations, including the
74+
migration(s) provided by this package:
7675

7776
```
78-
php artisan migrate --path=/vendor/jrean/laravel-user-verification/src/resources/migrations
77+
php artisan migrate
7978
```
8079

81-
Alternatively you may run the following command that will look for all
82-
available migrations including into this package:
80+
If you wish to only run the migration(s) from this package, run the following command:
8381

8482
```
85-
php artisan migrate
83+
php artisan migrate --path=/vendor/jrean/laravel-user-verification/src/resources/migrations
8684
```
8785

88-
The package tries to guess your `user` table by checking what is set in the auth providers users settings. If this key is not found, the default `App\User` will be used to get the table name.
86+
The package tries to guess your `user` table by checking what is set in the auth providers users settings.
87+
If this key is not found, the default `App\User` will be used to get the table name.
88+
89+
The migration adds a `verification_token` and a `verified` field to the user table.
8990

90-
To customize the migration to your needs, publish it with the following command:
91+
To customize the migration(s) to your needs, publish them with the following command:
9192

9293
```
9394
php artisan vendor:publish --provider="Jrean\UserVerification\UserVerificationServiceProvider" --tag="migrations"

0 commit comments

Comments
 (0)