From a725a6eaf24da77877d028b58eef9e9a34cc8fd0 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 7 Oct 2024 12:11:56 +0200 Subject: [PATCH] feat: update setType method to use slug value for type --- app/Livewire/Project/New/Select.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Livewire/Project/New/Select.php b/app/Livewire/Project/New/Select.php index b44844a95..2f66e7cc8 100644 --- a/app/Livewire/Project/New/Select.php +++ b/app/Livewire/Project/New/Select.php @@ -256,7 +256,8 @@ class Select extends Component public function setType(string $type) { - $type = str($type)->lower()->value(); + $type = str($type)->lower()->slug()->value(); + ray('type', $type); if ($this->loading) { return; }