I\'m using Laravel (v5).
I need one user and I\'ve already registered that. Now I want to disable registration for new users. Of course, I need the login form to wor
In routes.php, just add the following:
routes.php
if (!env('ALLOW_REGISTRATION', false)) { Route::any('/register', function() { abort(403); }); }
Then you can selectively control whether registration is allowed or not in you .env file.
.env