enable us to disable registration
tests / ci (push) Waiting to run

This commit is contained in:
Mark Gregory
2026-11-16 10:12:10 +00:00
parent ff2ef836c6
commit 523d4f087f
11 changed files with 150 additions and 6 deletions
+5 -2
View File
@@ -1,5 +1,6 @@
<?php
use App\Http\Middleware\EnsurePublicRegistrationEnabled;
use Laravel\Fortify\Features;
return [
@@ -101,7 +102,9 @@ return [
|
*/
'middleware' => ['web'],
'middleware' => ['web', EnsurePublicRegistrationEnabled::class],
'public_registration_default' => env('PUBLIC_REGISTRATION_ENABLED', true),
/*
|--------------------------------------------------------------------------
@@ -161,7 +164,7 @@ return [
*/
'features' => [
...(env('PUBLIC_REGISTRATION_ENABLED', true) ? [Features::registration()] : []),
Features::registration(),
Features::resetPasswords(),
Features::emailVerification(),
Features::twoFactorAuthentication([