+5
-2
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user