@
@
@Twitt2018-05-23 17:29:23
Laravel
@Twitt, 2018-05-23 17:29:23

How to make make:auth on an existing template?

There is already a page with its own design, from which the registration form is available (but it does not work yet). make:auth makes separate login and registration pages, but I would like to apply all the working functionality to the existing one. Is it possible to do make:auth for this, or do I have to do the registration myself?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin B., 2018-05-23
@Kostik_1993

php artisan vendor:publish --tag=view
and the templates are swimming in the views/auth folder

I
iljaGolubev, 2018-05-24
@iljaGolubev

trait RegistersUsers
After make:auth you will have Auth/RegisterController
Redefine the method in it

public function showRegistrationForm()
{
    return view('PATH.TO.YOURS.VIEW');
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question