Answer the question
In order to leave comments, you need to log in
How to understand in which file the form data is transferred?
Site made by Lavarel
@extends('layout')
@section('content')
<div class="news-box ">
<div class="news-box-content">
<form method="POST">
@if (!Auth::check())
<div class="form-group">
<label for="InputName">Ваш логин</label>
<input type="email" class="form-control" name="email" id="InputName" placeholder="Введите логин">
</div>
<div class="form-group">
<label for="InputPassword">Ваш пароль</label>
<input type="password" class="form-control" name="password" id="InputPassword" placeholder="*******">
</div>
<button type="submit" class="btn btn-default" name="login" value="1">Отправить</button>
@else
<button type="submit" class="btn btn-default" name="logout" value="1">Выйти</button>
@endif
</form>
</div>
</div>
@stop
Answer the question
In order to leave comments, you need to log in
These data are not enough. Write more at least routes. Most likely you need to look in AuthContoller.
To the same page on which this template is rendered, but only using the POST method.
And then all sorts of form.php and the like appear in / public ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question