Skip to content

Releases: Okipa/laravel-table

1.2.6

05 Jan 20:58
Compare
Choose a tag to compare
  • Replaced hard-coded info action icon by config value.

1.2.5

15 Oct 14:36
Compare
Choose a tag to compare
  • Fixed the translations publication and overriding as specified on the Laravel documentation : https://laravel.com/docs/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

09 Oct 12:29
Compare
Choose a tag to compare
  • Transferred PhpUnit builds tasks from Scrutinizer to Travis CI.
  • Transferred code coverage storage from Scrutinizer to Coveralls.
  • Re-authorized PHP7.1 as minimal version.

1.2.3

13 Sep 12:34
Compare
Choose a tag to compare
  • The model is now directly passed to the route during the table show, edit and destroy routes generation instead of its id.
// assuming your declared your edit route like this :
(new Table)->model(User::class)->routes([
    // ...
    'edit'    => ['name'=> 'user.edit', 'params' => ['foo' => 'bar']],
    //...
])
// the route will be generated like this during the table instantiation :
route('user.edit, [$user, 'foo' => 'bar']);
// instead of this way
route('user.edit, [$user->id, 'foo' => 'bar']);

1.2.2

13 Sep 10:56
Compare
Choose a tag to compare
  • Fixed params order when generating the table routes. The table model id was not positioned at first when declaring other parameters.
// with a route declared like this :
Route::get('user/edit/{user}/{foo}', 'UsersController@edit')->name('user.edit');
// and a table routes declaration like this :
(new Table)->model(User::class)->routes([
    // ...
    'edit'    => ['name'=> 'user.edit', 'params' => ['bar']],
    //...
])
// the route is now correctly generated and gives : /user/edit/1/bar instead of /user/edit/bar/1

1.2.1

13 Sep 09:55
Compare
Choose a tag to compare
  • Fixed the show, edit and destroy route generation, since Laravel 6 does handle differently the key given in the route() helper call :
// assuming your declared your edit route like this :
(new Table)->model(User::class)->routes([
    // ...
    'edit'    => ['name'=> 'user.edit', 'params' => ['foo' => 'bar']],
    //...
])
// the route will be generated like this during the table instantiation :
route('user.edit, [$user->id, 'foo' => 'bar']);
// instead of this way
route('user.edit, ['id' => $user->id, 'foo' => 'bar']);

1.2.0

04 Sep 14:53
Compare
Choose a tag to compare
  • Added compatibility for Laravel 6.

1.1.0

02 Aug 14:59
Compare
Choose a tag to compare
  • Added the possibility to add an identifier to a table with ->identifier('your identifier'). This identifier will be used for several things :
    • It will be added as an id (formatted as a slug string) to the table itself.
    • It will be used to automatically customize the following interaction fields sent to the table, in order to be able to interact with a specific table if you have several of them on a single view : rows, search, sort_by, sort_dir.
  • ⚠️ if you have published the views, you will have to re-publish them.

1.0.13

14 May 17:13
Compare
Choose a tag to compare
  • Fixed a use case when no sortable columns are defined and an empty orderBy is called in the SQL request, causing an exception with MySQL

1.0.12

09 May 09:40
Compare
Choose a tag to compare
  • Locked project compatibility to Laravel 5.5+ and PHP7.2+ to avoid issues.
  • Improved code phpdoc for better maintainability.