Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rappasoft committed May 26, 2020
2 parents df58786 + 635506a commit 97576bb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to `laravel-livewire-tables` will be documented in this file

## [Unreleased]

## [0.1.5] - 2020-05-26

### Changed

- Use constructor instead of mount so that the child classes have access to a mount method that they can accept parameters in.

## [0.1.4] - 2020-05-24

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

- Initial release

[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.4...development
[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.5...development
[0.1.5]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.3...v0.1.4
[0.1.3]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.1.1...v0.1.2
Expand Down
10 changes: 8 additions & 2 deletions src/TableComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,16 @@ abstract class TableComponent extends Component
public $refresh = false;

/**
* Constructor.
* Use constructor instead of mount so that the child classes have access to a mount method that they can accept parameters in.
*
* TableComponent constructor.
*
* @param $id
*/
public function mount()
public function __construct($id)
{
parent::__construct($id);

$this->setTranslationStrings();
}

Expand Down

0 comments on commit 97576bb

Please sign in to comment.