From 350dc0827e0ff9e4f47c2df23187a35e8a8cf58b Mon Sep 17 00:00:00 2001
From: Sam Light <samlight1994@gmail.com>
Date: Wed, 2 Apr 2025 22:29:34 +0100
Subject: Remamed functions more

---
 src/Toolbar.php | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

(limited to 'src/Toolbar.php')

diff --git a/src/Toolbar.php b/src/Toolbar.php
index 27d495d..10082ae 100644
--- a/src/Toolbar.php
+++ b/src/Toolbar.php
@@ -6,12 +6,15 @@ use Lightscale\LaralightTables\Toolbar\Item as ToolbarItem;
 use Lightscale\LaralightTables\Toolbar\Search as SearchItem;
 use Lightscale\LaralightTables\Toolbar\PageSize as PageSizeItem;
 use Lightscale\LaralightTables\Toolbar\Filter as FilterItem;
+use Lightscale\LaralightTables\Concerns\Makable;
 
 use Illuminate\View\View;
 use Illuminate\Support\Collection;
 
 class Toolbar
 {
+    use Makable;
+
     protected ?SearchItem $searchItem = null;
     protected ?PageSizeItem $pageSizeItem = null;
 
@@ -59,32 +62,32 @@ class Toolbar
         return $this;
     }
 
-    public function prependStartItem(ToolbarItem $item): static
+    public function prependStart(ToolbarItem $item): static
     {
         return $this->prependItem($this->startItems, $item);
     }
 
-    public function appendStartItem(ToolbarItem $item): static
+    public function appendStart(ToolbarItem $item): static
     {
         return $this->appendItem($this->startItems, $item);
     }
 
-    public function prependMidItem(ToolbarItem $item): static
+    public function prependMid(ToolbarItem $item): static
     {
         return $this->prependItem($this->midItems, $item);
     }
 
-    public function appendMidItem(ToolbarItem $item): static
+    public function appendMid(ToolbarItem $item): static
     {
         return $this->appendItem($this->midItems, $item);
     }
 
-    public function prependEndItem(ToolbarItem $item): static
+    public function prependEnd(ToolbarItem $item): static
     {
         return $this->prependItem($this->endItems, $item);
     }
 
-    public function appendEndItem(ToolbarItem $item): static
+    public function appendEnd(ToolbarItem $item): static
     {
         return $this->appendItem($this->endItems, $item);
     }
-- 
cgit v1.2.3