11** jrean/laravel-user-verification** is a PHP package built for Laravel 5 to
22easily handle a user verification flow and validate its email.
33
4- [ ![ 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 ) [ ![ Latest Unstable Version ] ( https://poser.pugx.org/jrean/laravel-user-verification/v/unstable )] ( 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 )
4+ [ ![ 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
@@ -104,13 +104,18 @@ Migrate the migration with the following command:
104104php artisan migrate
105105```
106106
107- ### Email
107+ ### Exception
108+
109+ If the table representing the user is not updated and then a user instance is
110+ given to the package a ` ModelNotCompliantException ` will be thrown.
111+
112+ ## E-mail
108113
109114This package offers to send an email with a link containing the verification token.
110115
111116Please refer to the Laravel documentation for the proper email component configuration.
112117
113- #### View
118+ ### E-mail View
114119
115120The user will receive an e-mail with a link leading to the getVerification
116121method (endpoint). You will need to create a view for this e-mail at
@@ -122,7 +127,7 @@ token. Here is an sample e-mail view to get you started:
122127Click here to verify your account: <a href="{{ $link = url('verification', $user->verification_token) . '?email=' . urlencode($user->email) }}"> {{ $link }}</a>
123128```
124129
125- ### Errors
130+ ## Errors
126131
127132This package throws several exceptions.
128133
@@ -138,7 +143,7 @@ This user is already verified.
138143* ` UserNotFoundException `
139144No user found for the given e-mail adresse.
140145
141- #### View
146+ ### Error View
142147
143148Create a view for the default verification error route at
144149resources/views/errors/user-verification.blade.php. Customize this view to your
@@ -169,7 +174,11 @@ over the three (3) previous listed public methods.
169174
170175### Trait
171176
172- The package also offers a trait for a quick implementation.
177+ The package also offers two (2) traits for a quick implementation.
178+
179+ ` Jrean\UserVerification\Traits\VerifiesUsers `
180+
181+ ` Jrean\UserVerification\Traits\RedirectsUsers `
173182
174183#### Endpoints
175184
0 commit comments