laravel 7 disable and enable registration code example Example: disable register laravel Auth::routes(['register' => false]);