Disable Auth Register route in Laravel 8?

At the end of my routes/web.php was the following line:

require __DIR__.'/auth.php';

In routes/auth.php are listed all additional routes for user login/register/logout. Just comment out or remove /register route from there.


Laravel 8 uses fortify authentication. To disable registration from your laravel app, you need to disable it from fortify, which is located on /config/fortify.php

'features' => [
    // Features::registration(), // disable here
     Features::resetPasswords(),
     Features::emailVerification(),
     Features::updateProfileInformation(),
     Features::updatePasswords(),
     Features::twoFactorAuthentication(),
],