Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Oct 18, 2015
1 parent 02792d7 commit 4b2f41c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TranslatableBootForms

TranslatableBootForms is a Laravel 4 package built on top of [BootForms](https://github.com/adamwathan/bootforms) and [Laravel Translatable](https://github.com/dimsav/laravel-translatable), it enable form model binding on translated fields.
TranslatableBootForms is a Laravel package built on top of [BootForms](https://github.com/adamwathan/bootforms) and [Laravel Translatable](https://github.com/dimsav/laravel-translatable), it enables form model binding on translated fields.

## Installing with Composer

Expand All @@ -10,27 +10,27 @@ You can install this package via Composer with this command:
composer require typicms/translatablebootforms
```

## Installation in Laravel 4
## Installation in Laravel

Modify the `providers` array in `app/config/app.php` to include the `BootFormsServiceProvider`:
Modify the `providers` array in `config/app.php` to include the service provider:

```php
'providers' => array(
'providers' => [
//…
'TypiCMS\TranslatableBootForms\TranslatableBootFormsServiceProvider'
),
TypiCMS\TranslatableBootForms\TranslatableBootFormsServiceProvider::class,
],
```

Run ```composer update```

Add the `BootForm` and `Translatable` facades to the `aliases` array in `app/config/app.php:
Add the `BootForm` and `Translatable` facades to the `aliases` array in `config/app.php:

```php
'aliases' => array(
'aliases' => [
//…
'BootForm' => 'AdamWathan\BootForms\Facades\BootForm'
'Translatable' => 'Dimsav\Translatable\Translatable',
),
'BootForm' => AdamWathan\BootForms\Facades\BootForm::class,
'Translatable' => Dimsav\Translatable\Translatable::class,
],
```

You can now start using BootForms by calling methods directly on the `BootForm` facade:
Expand Down

0 comments on commit 4b2f41c

Please sign in to comment.