Skip to content

Commit cee64b9

Browse files
committed
Documentation
1 parent 8cd987d commit cee64b9

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,32 @@ The view will be available in the `resources/views/vendor/laravel-user-verificat
234234

235235
### Routes
236236

237-
By default this packages ships with two routes. If you want to change them, you can simply define your own routes.
237+
By default this packages ships with two routes.
238238

239239
```PHP
240240
Route::get('email-verification/error', 'Auth\RegisterController@getVerificationError')->name('email-verification.error');
241241
Route::get('email-verification/check/{token}', 'Auth\RegisterController@getVerification')->name('email-verification.check');
242242
```
243243

244+
#### Overriding package routes
245+
246+
To define your own custom routes, put the package service provider call before the `RouteServiceProvider` call in the `app/config.php` file.
247+
248+
```PHP
249+
/*
250+
* Package Service Providers...
251+
*/
252+
Jrean\UserVerification\UserVerificationServiceProvider::class,
253+
254+
/*
255+
* Application Service Providers...
256+
*/
257+
// ...
258+
App\Providers\RouteServiceProvider::class,
259+
```
260+
261+
Then, add your custom routes in your route file.
262+
244263
### Traits
245264

246265
The package offers three (3) traits for a quick implementation.

0 commit comments

Comments
 (0)