diff --git a/config/app.php b/config/app.php index 888d806670577a6ae66e79f56a4d58e3862bba22..7882c3c656a5dee59a8005ef778fac35fb799fe9 100644 --- a/config/app.php +++ b/config/app.php @@ -14,6 +14,8 @@ return [ */ 'name' => env('APP_NAME', 'Monitoring'), + + 'allow_registration' => env("APP_ALLOW_REGISTRATION", true), 'proxy' => env('PROXY', null), diff --git a/routes/web.php b/routes/web.php index 56bb0b1247bc270ec10885ac9671b699992c3e9c..7a3a51490557beb31e4c7eb1595f9e5928515313 100644 --- a/routes/web.php +++ b/routes/web.php @@ -24,7 +24,7 @@ Route::get('/', function () { return view('index'); }); -Auth::routes(); +Auth::routes(['register' => config("app.allow_registration")]); Route::get("home", function () { return redirect(action("OrganizationController@index"));