diff --git a/src/DataTableComponent.php b/src/DataTableComponent.php index 042a85e43..f83f20693 100644 --- a/src/DataTableComponent.php +++ b/src/DataTableComponent.php @@ -32,11 +32,11 @@ abstract class DataTableComponent extends Component WithEvents, WithFilters, WithFooter, - WithSecondaryHeader, WithPagination, WithRefresh, WithReordering, WithSearch, + WithSecondaryHeader, WithSorting; protected $listeners = [ diff --git a/src/Views/Columns/ComponentColumn.php b/src/Views/Columns/ComponentColumn.php index b60ba72ef..f46174a0b 100644 --- a/src/Views/Columns/ComponentColumn.php +++ b/src/Views/Columns/ComponentColumn.php @@ -12,8 +12,8 @@ class ComponentColumn extends Column { - use ComponentColumnHelpers, - ComponentColumnConfiguration; + use ComponentColumnConfiguration, + ComponentColumnHelpers; protected string $componentView; @@ -32,7 +32,7 @@ public function getContents(Model $row) throw new DataTableConfigurationException('You can not use a label column with a component column'); } - if (false === $this->hasComponentView()) { + if ($this->hasComponentView() === false) { throw new DataTableConfigurationException('You must specify a component view for a component column'); } diff --git a/src/Views/Columns/ImageColumn.php b/src/Views/Columns/ImageColumn.php index b0014baad..8a1edc8ef 100644 --- a/src/Views/Columns/ImageColumn.php +++ b/src/Views/Columns/ImageColumn.php @@ -10,8 +10,8 @@ class ImageColumn extends Column { - use ImageColumnHelpers, - ImageColumnConfiguration; + use ImageColumnConfiguration, + ImageColumnHelpers; protected string $view = 'livewire-tables::includes.columns.image'; diff --git a/src/Views/Columns/LinkColumn.php b/src/Views/Columns/LinkColumn.php index e10a8937a..5dbdea68b 100644 --- a/src/Views/Columns/LinkColumn.php +++ b/src/Views/Columns/LinkColumn.php @@ -10,8 +10,8 @@ class LinkColumn extends Column { - use LinkColumnHelpers, - LinkColumnConfiguration; + use LinkColumnConfiguration, + LinkColumnHelpers; protected string $view = 'livewire-tables::includes.columns.link';