From 74cebe30f5b312dc00fd4043df367ef5d1d36741 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 3 Dec 2019 00:11:44 -0500 Subject: [PATCH] Use the Dashboard canRegister function to determine whether the register function should be allowed instead of implementing the same logic twice --- routes/web.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index f95eb9d..60145d3 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,5 +1,6 @@ env('REGISTRATION', false) === true || env('REGISTRATION', false) === \Request::ip() ]); +Route::auth([ 'register' => Dashboard::canRegister() ]); Route::get('/logout', 'Auth\LoginController@logout'); /*