Answer the question
In order to leave comments, you need to log in
Why can't he see the route?
The error itself is NotFoundHttpException in RouteCollection.php (line 179)
Why is this happening?
Here is the controller
public function code(Request $request){
$data = $request->all();
$info = User::where('login', $data['login'])
->where('code', $data['code'])
->update(['code' => 1]);
echo $info;
}
Route::group(['middleware' => 'web'], function () {
Route::get('code/activation', '[email protected]');
});
<form action="code/activation" method="get">
<p>Завершение регистрации</p>
<input class="auth-input" type="text" name="code" placeholder="183fB" required><br>
<input type="hidden" name="email" placeholder="login" value="{{ $login }}" required>
<input class="auth-button" type="submit" name="make-auth" value="Подтвердить"><br>
{{ csrf_field() }}
</form>
Answer the question
In order to leave comments, you need to log in
1) Check that your class is called nativeRegisterController, and not NativeRegisterController
2) Specify a normal action -
action="{{ action('[email protected]') }}"
or action="{{ url('/code/activation') }}"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question