From 2a227315dc46815bf06c046d636999d60a1de431 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Fri, 25 Apr 2025 23:07:58 +0100 Subject: Some larastan fixes --- src/Columns/Column.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/Columns/Column.php') diff --git a/src/Columns/Column.php b/src/Columns/Column.php index 2b033c7..46a03ba 100644 --- a/src/Columns/Column.php +++ b/src/Columns/Column.php @@ -3,6 +3,7 @@ namespace Lightscale\LaralightTables\Columns; use Lightscale\LaralightTables\TableComponent; +use Lightscale\LaralightTables\Concerns\Makable; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; @@ -12,6 +13,7 @@ use Illuminate\Support\HtmlString; use Closure; class Column { + use Makable; private TableComponent $table; private bool $showInSelect; @@ -30,11 +32,6 @@ class Column { $this->showInSelect = $this->title !== null; } - public static function make(string $name, ?string $title = null): static - { - return new static($name, $title); - } - public function setTable(TableComponent $table): void { $this->table = $table; -- cgit v1.2.3