What is the easiest, most elegant and effective way to create forms with Blade in Laravel 5.4? I'm 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 any built-in mechanism to generate forms easily?
Thanks
Laravel Form Builder is a package by Kristijan Husak that incorporates an API similar to Symfony's form builder for Laravel 5 applications. Form builder for Laravel 5 inspired by Symfony's form builder. With the help of Laravels FormBuilder class creates forms that can be easily modified and reused.
The Laravel Collective package HTML comes packed with an HTML and FORM generator allowing you to handle easy to manage forms in your blade files as well as intricate model binding to your forms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With