Skip to content

Commit 97576bb

Browse files
committed
Merge branch 'develop'
2 parents df58786 + 635506a commit 97576bb

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
44

55
## [Unreleased]
66

7+
## [0.1.5] - 2020-05-26
8+
9+
### Changed
10+
11+
- Use constructor instead of mount so that the child classes have access to a mount method that they can accept parameters in.
12+
713
## [0.1.4] - 2020-05-24
814

915
### Changed
@@ -34,7 +40,8 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
3440

3541
- Initial release
3642

37-
[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.4...development
43+
[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.5...development
44+
[0.1.5]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.4...v0.1.5
3845
[0.1.4]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.3...v0.1.4
3946
[0.1.3]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.2...v0.1.3
4047
[0.1.2]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.1...v0.1.2

src/TableComponent.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,16 @@ abstract class TableComponent extends Component
4949
public $refresh = false;
5050

5151
/**
52-
* Constructor.
52+
* Use constructor instead of mount so that the child classes have access to a mount method that they can accept parameters in.
53+
*
54+
* TableComponent constructor.
55+
*
56+
* @param $id
5357
*/
54-
public function mount()
58+
public function __construct($id)
5559
{
60+
parent::__construct($id);
61+
5662
$this->setTranslationStrings();
5763
}
5864

0 commit comments

Comments
 (0)