Skip to content

Commit 426951b

Browse files
authored
Add tip on disabling registration
Describe the necessary steps to disable registration after running `php artisan make:auth` on a new application since this topic comes up [quite](https://laracasts.com/discuss?q=disable+regist) [often](https://stackoverflow.com/search?q=laravel+disable+registration).
1 parent 9bcbc8f commit 426951b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

authentication.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Laravel provides a quick way to scaffold all of the routes and views you need fo
6060

6161
This command should be used on fresh applications and will install a layout view, registration and login views, as well as routes for all authentication end-points. A `HomeController` will also be generated to handle post-login requests to your application's dashboard.
6262

63+
> {tip} In the case where your application doesn’t need registration you can disable it bw removing the newly created `RegisterController` and passing the proper option to the routes declaration: `Auth::routes(['register' => false]);`.
64+
6365
<a name="included-views"></a>
6466
### Views
6567

0 commit comments

Comments
 (0)