2023-04-02
2023-01-21
2023-01-01
2022-11-14
2022-10-28
RedirectRowAction, that is now used to render the pre-configured ShowRowActionbool $openInNewWindow = false to the ShowRowActionAddHeadAction, that is using the built-in RedirectHeadAction
Add translation for it that you'll have to add to your own translationsconfig('laravel-table.icon.add') config for it with the <i class="fa-solid fa-circle-plus fa-fw"></i> default value that you'll also have to add to your published configuration file2022-10-27
2022-10-26
2022-10-25
->when(bool $condition) method to an instantiated head action, in order to enable it conditionallyRedirectHeadAction, that is now used to render the pre-configured CreateHeadActionbool $openInNewWindow = false to the CreateHeadAction2022-10-07
form-select class uses for Bootstrap 4 template selects: replaced them by custom-select2022-09-26
make:table <TableName> --model=<ModelNamespace> command2022-09-21
livewire/livewire dependency as the package is now based on itokipa/laravel-html-helper dependencyphpcs/phpcbf by laravel/pint:point_right: See the upgrade guide
2022-05-17
null2022-03-10
dateTimeFormat method:
dateTimeFormat method signature to dateTimeFormat(string $dateTimeFormat, string $timezone = null): \Okipa\LaravelTable\Columnconfig('app.timezone') is used2022-03-01
appendData method2021-08-17
$type property to src/Console/Commands/MakeTable in order to display correct messages:
Table already exists!Table created successfully.2021-04-11
--model option2021-01-10
->rowsConditionalClasses() method to be called several times on a table. In addition, the second $rowClasses argument of this method now accepts array or closure (which let you manipulate a \Illuminate\Database\Eloquent\Model $model attribute)->appendData() method, which led to + character addition when values were containing spaces2020-09-14
okipa/laravel-html-helper version in composer.json2020-09-14
:point_right: See the upgrade guide
2020-09-10
2020-08-24
2020-08-24
$column->value() method (https://github.com/Okipa/laravel-table/issues/54)2020-08-24
button method without arguments has no visual effect: added instructions in V2 to v3 the upgrade-guide to take care of this new behaviourrows number definition was wrongly named rows number selection at different places (config, templates, methods, ...): this is an unfortunately breaking change if you published config or templates but I take advantage of the early release of the V3 and from the fact that Laravel 8 is not released to do itGET http request2020-08-24
button method behaviour which is supposed to allow usage without arguments2020-08-09
Table instances :
rowsSearchingTemplaterowsNumberDefinitionTemplatecreateActionTemplatecolumnTitlesTemplatenavigationStatusTemplatepaginationTemplate:point_right: See the upgrade guide
2020-04-30
:point_right: See the upgrade guide
2020-04-26
->icon() method->prepend() method to the table columns (which will replace the previous ->icon() one) to prepend HTML to a column value->append() method to the table columns to append HTML to a column value2020-04-26
show, edit and destroy actions are now defined in their own component. This way, it becomes easier to customize tiny parts of the table without touching to the others
config('laravel-table.template.show'), config('laravel-table.template.edit') and config('laravel-table.template.destroy') configs to set each new default component path->showTemplate(), ->editTemplate() and ->destroyTemplate() to give the ability to customize these templates on the fly2020-04-25
2020-04-03
show action is the only one defined2020-01-05
info action icon by config value2019-10-15
php artisan vendor:publish --tag=laravel-table:translationsphp artisan vendor:publish --tag=laravel-table:configphp artisan vendor:publish --tag=laravel-table:views--prefer-lowest composer tag to check the package compatibility with the lowest dependencies versions)2019-10-09
2019-09-13
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']);
2019-09-13
// 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
2019-09-13
show, edit and destroy route generation, since Laravel 6 does handle differently the key given in the route() helper:// 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']);
2019-09-04
2019-08-02
->identifier('your identifier'). This identifier will be used for several things:
rows, search, sort_by, sort_dir2019-02-21
edit and destroy buttons are now hidden when a line is disabledpostgres for the searching action, using ILIKE instead of LIKE operator for case-insensitive searching2019-02-21
td html tag: the title is displayed on the left and the result html on the righttr html tag and no more on the td html tags2019-02-19
->result() method the Column objects->resultClasses() method->result() method with the following methods:
->title(): Set the result row title->html(): Display a HTML output for the result row. The closure let you manipulate the following attributes: \Illuminate\Support\Collection $paginatedRows->classes(): Override the default results classes and apply the given classes only on this result row. The default result classes are managed by the config('laravel-table.classes.results') value->resultsTemplatePath() method2019-02-19
->result() method the Column objects->resultClasses() methodscope attributes to correct td html tags2019-02-18
thead and tfoot components in order to improve the responsive behavior2019-02-17
->appends() does now also add appended attributes to search canceling and sorting actions2019-02-15
->appends() method does now add appended key values to rows number selection form and to searching form as hidden fields2019-02-15
->query() table method2019-05-14
orderBy is called in the SQL request, causing an exception with MySQL2019-05-09
2019-05-06
show to the list of available routes. - [@Dranthos](https://github.com/Dranthos)->rowsNumber(null) chained on the Table instance (Issue #16)2019-02-21
td html tag was missing)2019-02-13
->where() clause to avoid wrong behaviours when searching values. Thanks to https://github.com/costeirs for the PRHow can I help you explore Laravel packages today?