TranslatableBootForms is a Laravel 4 package built on top of BootForms and Laravel Translatable, it enable form model binding on translated fields.
You can install this package via Composer by including the following in your composer.json
:
"require": {
"typicms/translatablebootforms": "~1.0.1"
}
Modify the providers
array in app/config/app.php
to include the BootFormsServiceProvider
:
'providers' => array(
//…
'TypiCMS\TranslatableBootForms\TranslatableBootFormsServiceProvider'
),
Run composer update
Add the BootForm
and Translatable
facades to the aliases
array in `app/config/app.php:
'aliases' => array(
//…
'BootForm' => 'AdamWathan\BootForms\Facades\BootForm'
'Translatable' => 'Dimsav\Translatable\Translatable',
),
You can now start using BootForms by calling methods directly on the BootForm
facade:
BootForm::text('title', 'en[title]')
BootForms
https://github.com/adamwathan/bootforms
Laravel-Translatable
https://github.com/dimsav/laravel-translatable