DEV Community

Milan Chheda
Milan Chheda

Posted on • Originally published at milanchheda.com on

3 2

[How-to] Disable Registration in Laravel 5.7

[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.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more