[How-to] Disable Registration in Laravel 5.7

github logo Originally published at milanchheda.com on ใƒป1 min read

[How-to] Disable Registration in Laravel 5.7

In one of my previous posts, I have shown how to disable registration in Laravel.

In Laravel 5.7, a new way has been introduced to disable registration and that's all thanks to Dennis Smink, for his excellent pull request

Auth::routes(['register' => false]);

That's the only code you need to add and that would disable the registration in your Laravel application.

twitter logo DISCUSS
Classic DEV Post from Mar 29

Speed of Voice - The Pace of Your Presentation Can Heavily Impact How Well it Lands

Learn how to control the pace of your voice in your presentation to land your message

Milan Chheda profile image