From 1c57e879be2e39fdcdc1a745f0e11b85eeff634e Mon Sep 17 00:00:00 2001 From: Pushpak Chhajed Date: Mon, 8 Dec 2025 19:22:01 +0530 Subject: [PATCH 1/2] Update starter-kits.md --- starter-kits.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/starter-kits.md b/starter-kits.md index 0a89e89163..12c278b020 100644 --- a/starter-kits.md +++ b/starter-kits.md @@ -321,7 +321,10 @@ use Laravel\Fortify\Features; ], ``` -If you want to disable a feature, simply comment out or remove that feature entry from the `features` array. For example, remove `Features::registration()` to disable public registration. +To disable a feature, comment out or remove that feature entry from the `features` array. For example, remove `Features::registration()` to disable public registration. + +> [!NOTE] +> When using the [React](#react) or [Vue](#vue) starter kits, you will also need to remove any references to the disabled feature's routes in your frontend code. For example, if you disable email verification, you should remove the imports and references to the `verification` routes in your Vue or React components. This is necessary because these starter kits use Wayfinder for type-safe routing, which generates route definitions at build time. If you reference routes that no longer exist, your application will fail to build. ### Customizing User Creation and Password Reset From e7c992570eedd923c166c9200710ba36d306b13f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Dec 2025 09:48:09 -0600 Subject: [PATCH 2/2] Clarify instructions for disabling features Removed note formatting for clarity. --- starter-kits.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/starter-kits.md b/starter-kits.md index 12c278b020..af539f6d04 100644 --- a/starter-kits.md +++ b/starter-kits.md @@ -323,8 +323,7 @@ use Laravel\Fortify\Features; To disable a feature, comment out or remove that feature entry from the `features` array. For example, remove `Features::registration()` to disable public registration. -> [!NOTE] -> When using the [React](#react) or [Vue](#vue) starter kits, you will also need to remove any references to the disabled feature's routes in your frontend code. For example, if you disable email verification, you should remove the imports and references to the `verification` routes in your Vue or React components. This is necessary because these starter kits use Wayfinder for type-safe routing, which generates route definitions at build time. If you reference routes that no longer exist, your application will fail to build. +When using the [React](#react) or [Vue](#vue) starter kits, you will also need to remove any references to the disabled feature's routes in your frontend code. For example, if you disable email verification, you should remove the imports and references to the `verification` routes in your Vue or React components. This is necessary because these starter kits use Wayfinder for type-safe routing, which generates route definitions at build time. If you reference routes that no longer exist, your application will fail to build. ### Customizing User Creation and Password Reset