Skip to content

Commit

Permalink
1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur LORENT committed Oct 15, 2019
1 parent 46db1c2 commit b18cd5b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [1.2.5](https://github.com/Okipa/laravel-table/releases/tag/1.2.5)

2019-10-14

- Fixed the translations publication and overriding as specified on the Laravel documentation : https://laravel.com/docs/.7/packages#translations.
- Changed the command to publish the translations to : `php artisan vendor:publish --tag=laravel-table:translations`
- Changed the command to publish the configuration to : `php artisan vendor:publish --tag=laravel-table:config`
- Changed the command to publish the views to : `php artisan vendor:publish --tag=laravel-table:views`
- Improved testing with Travis CI (added some tests with `--prefer-lowest` composer tag to check the package compatibility with the lowest dependencies versions).

## [1.2.4](https://github.com/Okipa/laravel-table/releases/tag/1.2.4)

2019-10-09
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,17 @@ Then, override the `config/laravel-table.php` file with you own configuration va
You can customize the package translation by publishing them in your project :

```bash
php artisan vendor:publish --tag=laravel-table::translations
php artisan vendor:publish --tag=laravel-table:translations
```

Once you have published them, override them from your `resources/lang/[locale]\laravel-table.php` directory.
Once you have published them, override them from your `resources/lang/vendor/laravel-table/<locale>/laravel-table.php` directory.

## Customize templates

To modify or use your own template, you will have to publish the package blade templates in your project :

```bash
php artisan vendor:publish --tag=laravel-table::views
php artisan vendor:publish --tag=laravel-table:views
```

Then, play with the templates in your `resources/views/vendor/laravel-table` directory.
Expand Down
8 changes: 4 additions & 4 deletions src/LaravelTableServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ public function boot()
$this->loadTranslationsFrom(__DIR__ . '/../lang', 'laravel-table');
$this->publishes([
__DIR__ . '/../config/laravel-table.php' => config_path('laravel-table.php'),
], 'laravel-table::config');
], 'laravel-table:config');
$this->publishes([
__DIR__ . '/../lang' => resource_path('lang'),
], 'laravel-table::translations');
__DIR__ . '/../lang' => resource_path('lang/vendor/laravel-table'),
], 'laravel-table:translations');
$this->publishes([
__DIR__ . '/../views' => resource_path('views/vendor/laravel-table'),
], 'laravel-table::views');
], 'laravel-table:views');
// we load the laravel html helper package
// https://github.com/Okipa/laravel-html-helper
$this->app->register(HtmlHelperServiceProvider::class);
Expand Down

0 comments on commit b18cd5b

Please sign in to comment.