PHPackages                             n3m3s7s/laravel-translatable-bootforms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. n3m3s7s/laravel-translatable-bootforms

ActiveLibrary[Templating &amp; Views](/categories/templating)

n3m3s7s/laravel-translatable-bootforms
======================================

Empowers adamwathan/bootforms with dimsav/laravel-translatable.

071PHPCI failing

Since Sep 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/n3m3s7s/laravel-translatable-bootforms)[ Packagist](https://packagist.org/packages/n3m3s7s/laravel-translatable-bootforms)[ RSS](/packages/n3m3s7s-laravel-translatable-bootforms/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Translatable BootForms
==============================

[](#laravel-translatable-bootforms)

[![Build Status](https://camo.githubusercontent.com/9a3cade761c1c7b599e1c70d34798bc1b5895f951e5b7e437307755b5355bf84/68747470733a2f2f7472617669732d63692e6f72672f50726f706167616e69737461732f4c61726176656c2d5472616e736c617461626c652d426f6f74666f726d732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Propaganistas/Laravel-Translatable-Bootforms)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8d3baa8238e46f2426cab1340241ab262fa130b0d9069ae4a758af498f0dc119/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50726f706167616e69737461732f4c61726176656c2d5472616e736c617461626c652d426f6f74466f726d732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Propaganistas/Laravel-Translatable-BootForms/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/406c7e3441352cfac83e83b464c7ce2a6304c90ab99e26528607f1c99a4a362e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50726f706167616e69737461732f4c61726176656c2d5472616e736c617461626c652d426f6f74666f726d732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Propaganistas/Laravel-Translatable-Bootforms/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/d793d8d84acec3e15f75dbff7c2e10f9fa9a5e21441899d864791cf4ced3c85a/68747470733a2f2f706f7365722e707567782e6f72672f70726f706167616e69737461732f6c61726176656c2d7472616e736c617461626c652d626f6f74666f726d732f762f737461626c65)](https://packagist.org/packages/propaganistas/laravel-translatable-bootforms)[![Total Downloads](https://camo.githubusercontent.com/2585dfc9b8bec8fb7593b7e7aa14be36566eb937025c6406ce5ff7cf9b69b552/68747470733a2f2f706f7365722e707567782e6f72672f70726f706167616e69737461732f6c61726176656c2d7472616e736c617461626c652d626f6f74666f726d732f646f776e6c6f616473)](https://packagist.org/packages/propaganistas/laravel-translatable-bootforms)[![License](https://camo.githubusercontent.com/4b8d2b3e44f8777b94da24b0e2c265bd50c989a31028d5b5ac06a61184acb37a/68747470733a2f2f706f7365722e707567782e6f72672f70726f706167616e69737461732f6c61726176656c2d7472616e736c617461626c652d626f6f74666f726d732f6c6963656e7365)](https://packagist.org/packages/propaganistas/laravel-translatable-bootforms)

Make [BootForms](https://github.com/adamwathan/bootforms) work flawlessly with [Laravel Translatable](https://github.com/dimsav/laravel-translatable)!

By importing this package, generating translatable forms using BootForms is a breeze.

### Installation

[](#installation)

1. Run the Composer require command to install the package

    ```
    composer require propaganistas/laravel-translatable-bootforms
    ```
2. In your app config, add the Service Provider in the `$providers` array **after** `BootFormsServiceProvider` and `TranslatableServiceProvider`

    ```
    'providers' => [
        AdamWathan\BootForms\BootFormsServiceProvider::class,
        Dimsav\Translatable\TranslatableServiceProvider::class,
        ...
        Propaganistas\LaravelTranslatableBootForms\TranslatableBootFormsServiceProvider::class,
    ],
    ```
3. In your app config, add the Facade to the `$aliases` array

    ```
    'aliases' => [
        ...
        'TranslatableBootForm' => Propaganistas\LaravelTranslatableBootForms\Facades\TranslatableBootForm::class,
    ],
    ```
4. Publish the configuration file

    ```
    php artisan vendor:publish --provider="Propaganistas\LaravelTranslatableBootForms\TranslatableBootFormsServiceProvider" --tag="config"
    ```

### Usage

[](#usage)

Simply use the `TranslatableBootForm` Facade as if it were `BootForm`! That's it. Multiple form inputs will now be generated for the locales set in Translatable's configuration file. They will have the corresponding value for each language and will save all of the translations without any code manipulation.

Please review [BootForms' documentation](https://github.com/adamwathan/bootforms#using-bootforms) if you're unsure how to use it.

Example:

```
// View
{!! BootForm::text('Name', 'name')
            ->placeholder('My placeholder') !!}

// Output

    Name

// Controller
public function postEdit($request)
{
    $someModel->save($request->all());
}
```

```
// View
{!! TranslatableBootForm::text('Name', 'name')
                        ->placeholder('My placeholder') !!}

// Output

    Name (en)

    Name (nl)

// Controller
public function postEdit($request)
{
    $someModel->save($request->all());
}
```

You can use the `%name` and `%locale` placeholders while specifying parameters. The placeholder will be replaced with the corresponding input name or locale. This can be useful for two-way data binding libraries such as Angular.js or Vue.js. E.g.

```
{!! TranslatableBootForm::text('Title', 'title')
                        ->attribute('some-attribute', 'Name: %name')
                        ->attribute('another-attribute', 'Locale: %locale') !!}

// Output

    Title (en)

    Title (nl)

```

To render a *form element only for some chosen locales*, explicitly call `renderLocale()` as the final method and pass the locale or an array of locales as the first parameter:

```
TranslatableBootForm::text('Name','name')
                    ->renderLocale('en')
```

If you need to apply a *method only for certain locales*, suffix the method with `ForLocale` and pass the locale or an array of locales as the first parameter:

```
TranslatableBootForm::text('Name','name')
                    ->dataForLocale('en', 'attributeName', 'attributeValue')
                    ->addClassForLocale(['en', 'nl'], 'addedClass')
```

In case you need to construct name attributes other than `en[name]`, e.g. `item.en.name`, manually insert the `%locale` placeholder in your name attribute. Note that model binding will **break** for these inputs.

```
TranslatableBootForm::text('Name','item.%locale.name')

// Output

    Name (en)

```

For customizing the locale indicator in the label (and several other settings), please take a look at the configuration file.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f97d7a1d160a91267a42b6e70504a7fb22bc2f642fdde5ef08bca5d9203088e?d=identicon)[N3m3s7s](/maintainers/N3m3s7s)

### Embed Badge

![Health badge](/badges/n3m3s7s-laravel-translatable-bootforms/health.svg)

```
[![Health](https://phpackages.com/badges/n3m3s7s-laravel-translatable-bootforms/health.svg)](https://phpackages.com/packages/n3m3s7s-laravel-translatable-bootforms)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3841.2M](/packages/limenius-react-bundle)[pdewit/nova-external-url

An external URL Laravel Nova field.

30383.2k](/packages/pdewit-nova-external-url)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.7k1](/packages/wbrowar-guide)[localgovdrupal/localgov_base

The base theme for LocalGov Drupal websites.

13126.9k5](/packages/localgovdrupal-localgov-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
