Disable user registration and Enable Maintenance mode

Laraship QuestionsCategory: TechnicalDisable user registration and Enable Maintenance mode
phat.pham asked 5 years ago
Hello, How could i disable user registration? And how could i enable maintenance mode? Thank you.
1 Answers
laraship Staff answered 5 years ago

Hello Phat,
You can disable registration using few methods,
1) You can override the registration view and remove the registration form
2) You can disable routes for registration from at Corals/core/User/routes/web.php

Route::get('register', ['as' => 'register', 'uses' => 'Auth\RegisterController@showRegistrationForm']);<p>Route:: post('register', 'Auth\RegisterController@register');</p>