How to disable registration in laravel 5 and above
Laravel 5 comes with build-in login and registration functionality. You can easily enable it, but the hard part is to disable registration, because by default anyone can register an account and login to your admin panel. So, it is important to disable registration. To enable build-in login feature, follow this: How to enable Authentication in laravel 5 and above. Their are many different solution to disable registration in laravel 5. Some of them are: 1. Set Registration for Authenticated user only (recommend) This method doesn't disable registration but enable registration only for authenticated users; that is, a user must be logged-in to create new account. Step 1 : Go into /app/http/controllers/auth Step 2 : Open RegisterController.php into any editor. Step 3 . Now, Find __construct() function that is public function __construct(){ $this->middleware(‘guest’); } Step 4: Change $this->middleware(...