How to combine the Authorization system\Registration\password Recovery 5.2 in Laravel?

There is a standard authorization system Laravel 5.2.
There is a form
<form action="{{ url('/login') }}" method="post">
 <div class="container-form">
 the <h3>Login or register</h3>
 <a href="#" title="tt close" class="close-popup"><strong><svg xmlns="" viewBox="0 0 16.63 17.06"><title>close</title><path class="close-svg" d="M15.3,17.06 l-7-7.16-7,7.16L0,15.73l6.95-7.2L0,1.4,1.26,0l7,7.16,7-7.2,1.33,1.33-7,7.2,7,7.2 Z" style="fill:#ffffff"/></svg></strong></a>
 <div class="field-row">
 <input name="email" type="email" value="{{ old('email') }}" class="text {{ $errors->has('email') ? 'error-input' : "}} " id="field4" placeholder="E-mail">
 <div class="field-row">
 <input name="password" type="password" value class="text {{ $errors->has('password') ? 'error-input' : "}}" id="field2" placeholder="Password">
 <div class="row-checkbox">
 <input type="checkbox" class="checkbox" id="field3" name="remember">
 <label name="Remember" for="field3">Remember me</label>
 <div class="row-buttons">
 <button type="submit" name="enter" class="button">Login</button>
 <button type="submit" name="register" class="button">Register</button>
 <div class="row-buttons">
 <button type="submit" name="forgot" class="button">Forgot password!!?</button>

It has 3 buttons with different name. How can you combine so that a request Coming did what is specified in name.
At registration - register with a password.
If authorization is logged and sent mail.
When recovery were sent an email with a link.

Interested in is how to combine it all, as a typical authorization system laravel - doing it with different controllers and traits that implies sending and processing of requests with different ranting.
July 8th 19 at 12:20
2 answers
July 8th 19 at 12:22
Make js handlers for each button.
interesting, but not in this case, I would like to use a low JSa - omer_Larson commented on July 8th 19 at 12:25
: well, if the round square is already shove, why not in js? - amparo_Hickle commented on July 8th 19 at 12:28
July 8th 19 at 12:24
Add a hidden field with name and process it in the controller?
That's right, I already did so, wondering exactly how to handle the controller? Because a) For registration\Authorization, and password Recovery answer different controllers: AuthController and PasswordController respectively.

And I don't understand how you can combine them. If there is an option to do some function controller with redirecting... in the right direction... - omer_Larson commented on July 8th 19 at 12:27
Yes it is.copy the template to send it via some other route (with your name) , process , and send Auth - amparo_Hickle commented on July 8th 19 at 12:30

Find more questions by tags Laravel