Skip to content

Commit 75fae18

Browse files
committed
Documentation
1 parent 55933a4 commit 75fae18

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

README.md

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,11 @@ this view to your needs.
185185
### Routes
186186

187187
Add the two (2) default routes to the `app\Http\routes.php` file. Routes are
188-
customizable. If you do so, you must overwrite the corresponding available
189-
redirect attributes/properties listed later.
188+
customizable.
190189

191190
```
192-
Route::get('verification/error', 'Auth\AuthController@getVerificationError');
193191
Route::get('verification/{token}', 'Auth\AuthController@getVerification');
192+
Route::get('verification/error', 'Auth\AuthController@getVerificationError');
194193
```
195194

196195
### Trait
@@ -277,27 +276,40 @@ public methods and the attributes/properties. Dig into the source.
277276
verification. You are free to implement any flow you may want to achieve.**
278277

279278
This package whishes to let you be creative while offering you a predefined
280-
path. The following guidelines assume you have configured Laravel for the
279+
path. **The following guidelines assume you have configured Laravel for the
281280
package as well as created and migrated the migration according to this
282-
documentation.
281+
documentation and the previous documented steps.**
283282

284283
Note that by default the behaviour of Laravel is to return an authenticated
285284
user straight after the registration step.
286285

287286
### Example
288287

289-
The following code sample aims to showcase a quick and basic implementation.
288+
The following code sample aims to showcase a quick and basic implementation
289+
following Laravel logic. You are free to implement the way you want.
290+
It is highly recommended to read and understand the way Laravel implements
291+
registration / authentication before implementing the package.
292+
293+
Edit the `app\Http\routes.php` file.
294+
295+
- Define two (2) new routes.
290296

291-
Edit the `app\Http\Controller\Auth\AuthController.php` file. It is highly
292-
recommended to read the content of the authentication properpties /
293-
methods provided by Laravel before implementing the package.
297+
```
298+
Route::get('verification/{token}', 'Auth\AuthController@getVerification');
299+
Route::get('verification/error', 'Auth\AuthController@getVerificationError');
300+
```
301+
302+
- Define the e-mail view.
303+
304+
Edit the `app\Http\Controller\Auth\AuthController.php` file.
294305

295306
- [x] Import the `VerifiesUsers` trait (mandatory)
296-
- [ ] Overwrite and customize the redirect path attributes/properties (not
297-
mandatory)
298-
- [ ] Overwrite and customize the view name for the `getVerificationError()` method
307+
- [ ] Overwrite and customize the redirect attributes/properties paths
308+
available within the `RedirectsUsers` trait included by the
309+
`VerifiesUsers` trait. (not mandatory)
310+
- [ ] Overwrite the error view name used by the `getVerificationError()` method
299311
(not mandatory)
300-
- [x] Create the verification error view according to the defined path (mandatory)
312+
- [x] Create the verification error view (mandatory)
301313
- [ ] Overwrite the contructor (not mandatory)
302314
- [x] Overwrite the `postRegister()`/`register()` method depending on the
303315
Laravel version you use (mandatory)
@@ -397,14 +409,12 @@ methods provided by Laravel before implementing the package.
397409
}
398410
```
399411

400-
Edit the `app\Http\routes.php` file.
401-
402-
- Define two (2) new routes.
412+
At this point, after registration an e-mail is sent to the user.
413+
Click the link within the e-mail and the user will be verified against the
414+
token.
403415

404-
```
405-
Route::get('verification/error', 'Auth\AuthController@getVerificationError');
406-
Route::get('verification/{token}', 'Auth\AuthController@getVerification');
407-
```
416+
**Note by default the user won't be authenticated after the verification**. You
417+
are free to implement it or not.
408418

409419
## Contribute
410420

0 commit comments

Comments
 (0)