V
V
Viktor Familyevich2017-08-21 11:40:49
Laravel
Viktor Familyevich, 2017-08-21 11:40:49

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

3 answer(s)
N
Nikita Dergachov, 2017-08-21
@vanillathunder

These data are not enough. Write more at least routes. Most likely you need to look in AuthContoller.

S
Stanislav Pochepko, 2017-08-21
@DJZT

To the same page on which this template is rendered, but only using the POST method.

A
Alex Wells, 2017-08-22
@Alex_Wells

And then all sorts of form.php and the like appear in / public ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question