R
R
Rishat Sultanov2017-02-28 15:56:06
Laravel
Rishat Sultanov, 2017-02-28 15:56:06

How to properly override registration controller in Laravel 5.4?

Good afternoon, ladies and gentlemen.
Please help me to override the registration method in laravel, which is installed out of the box.
The problem is that there used to be a main Auth controller. Now I see divided into 4 different controllers.
I want to disable user registration.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2017-02-28
@Sanasol

https://laravel.com/docs/5.4/authentication#authen...

K
KravcosArtem, 2017-10-13
@KravcosArtem

In RegisterController.php
Add

public function showRegistrationForm() 
    {
        return redirect('login');
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question