How to disable registration new users in Laravel

To disable registration of new users in Laravel, you can remove the registration routes from the web.php file in the routes folder. Additionally, you can remove the functionality for creating new users in the registration controller. If you have used the built-in authentication controllers and views provided by Laravel, you can also remove or comment out the code related to registration in the views and controllers.

Watch a course Learn object oriented PHP

Another way is to modify the middleware that is applied to the registration routes. You can modify the middleware to check if registration is allowed or not, and redirect to a different page if it is not.

Also, you can use Laravel's Gate or Policy to control the registration process.

It depends on your implementation and the way you have set up your app.