File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff 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
240240Route::get('email-verification/error', 'Auth\RegisterController@getVerificationError')->name('email-verification.error');
241241Route::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
246265The package offers three (3) traits for a quick implementation.
You can’t perform that action at this time.
0 commit comments