11** jrean/laravel-user-verification** is a PHP package built for Laravel 5 to
2- easily handle a user verification flow and validate its email .
2+ easily handle a user verification flow and validate its e-mail .
33
44[ ![ Latest Stable Version] ( https://poser.pugx.org/jrean/laravel-user-verification/v/stable )] ( https://packagist.org/packages/jrean/laravel-user-verification ) [ ![ Total Downloads] ( https://poser.pugx.org/jrean/laravel-user-verification/downloads )] ( https://packagist.org/packages/jrean/laravel-user-verification ) [ ![ License] ( https://poser.pugx.org/jrean/laravel-user-verification/license )] ( https://packagist.org/packages/jrean/laravel-user-verification )
55
66## About
77
88- Generate and store a verification token for a registered user.
9- - Send an email with the verification token link.
9+ - Send an e-mail with the verification token link.
1010- Handle the verification of the token.
1111- Set the user as verified.
1212
@@ -17,14 +17,21 @@ To get the latest version of Laravel User Verification, simply add the following
1717the require block of your composer.json file:
1818
1919 "jrean/laravel-user-verification": "dev-master"
20+
21+ or
22+
23+ "jrean/laravel-user-verification": "2.2.*"
24+
25+ or
26+
2027 "jrean/laravel-user-verification": "2.*"
2128
22- or
29+ You'll then need to run ` composer install ` or ` composer update ` to download the
30+ package and have the autoloader updated.
2331
24- "composer require jrean/laravel-user-verification"
32+ Or run the following command:
2533
26- You'll then need to run ` composer install ` or ` composer update ` to download it and
27- have the autoloader updated.
34+ "composer require jrean/laravel-user-verification"
2835
2936### Add the Service Provider
3037
@@ -44,8 +51,10 @@ Open up `config/app.php` and add the following to the `aliases` key:
4451
4552Prior to use this package the table representing the user must be updated with
4653two new columns, "verified" and "verification_token". It is mandatory to add
47- the two columns on the same table and where the user's email is
48- stored. Last but not least, the model must implement the authenticatable
54+ the two columns on the same table and where the user's e-mail is
55+ stored.
56+
57+ Last but not least, the model must implement the authenticatable
4958interface ` Illuminate\Contracts\Auth\Authenticatable ` which is the default with
5059the Eloquent User model.
5160
@@ -111,9 +120,9 @@ given to the package a `ModelNotCompliantException` will be thrown.
111120
112121## E-mail
113122
114- This package offers to send an email with a link containing the verification token.
123+ This package offers to send an e-mail with a link containing the verification token.
115124
116- Please refer to the Laravel documentation for the proper email component configuration.
125+ Please refer to the Laravel documentation for the proper e-mail component configuration.
117126
118127### E-mail View
119128
@@ -302,7 +311,7 @@ Edit the `app\Http\Controller\Auth\AuthController.php` file.
302311
303312 UserVerification::generate($user);
304313
305- UserVerification::send($user, 'My Custom Email Subject');
314+ UserVerification::send($user, 'My Custom E-mail Subject');
306315
307316 return redirect($this->redirectPath());
308317 }
0 commit comments