Reduce the boilerplate code required to get forms in Laravel to have Foundation styling
ckdot/laravel-foundation-forms is a Laravel package for reduce the boilerplate code required to get forms in laravel to have foundation styling.
It currently has 0 GitHub stars and 959 downloads on Packagist (latest version 0.1.8).
Install it with composer require ckdot/laravel-foundation-forms.
Discover more Laravel packages by ckdot
or browse all Laravel packages to compare alternatives.
Last updated
Create Foundation forms in Laravel in no time. You can find the original article here: http://blog.stidges.com/post/easy-bootstrap-forms-in-laravel
composer require ckdot/laravel-foundation-forms:~0.1
Make sure you comment out the existing HtmlServiceProvider (Illuminate\Html\HtmlServiceProvider):
<?php
// File (Laravel 5): config/app.php
return array(
// ...
'providers' => array(
// ...
//Illuminate\Html\HtmlServiceProvider::class,
Ckdot\FoundationForms\FoundationFormsServiceProvider::class,
// ...
),
// ...
);
No change is necessary for the Form Facade.
{{ Form::open([ 'route' => 'posts.store' ]) }}
{{ Form::openGroup('title', 'Title') }}
{{ Form::text('title') }}
{{ Form::closeGroup() }}
{{ Form::openGroup('status', 'Status') }}
{{ Form::select('status', $statusOptions) }}
{{ Form::closeGroup() }}
{{ Form::close() }}