What is the best way to create forms in Laravel 5.4?

What is the easiest, most elegant and efficient way to create forms with Blade in Laravel 5.4? I am creating an application with many forms and most of the fields look the same:

<label for="name">Name:</label>
<input type="text" name="name" id="name" value="{{ old('name') }}">

@if ($errors->has('name'))
<ul>
    @foreach($errors->get('name') as $error)
    <li>{{ $error }}</li>
    @endforeach
</ul>
@endif

So, I wonder if there is a built-in mechanism for creating forms?

thank

+4
source share
3 answers
+3
source

php composer.phar requires laravelcollective / html

0

HTML-.

0

Source: https://habr.com/ru/post/1668863/


All Articles