feat: update setType method to use slug value for type
This commit is contained in:
parent
3b3362daf0
commit
a725a6eaf2
1 changed files with 2 additions and 1 deletions
|
|
@ -256,7 +256,8 @@ public function instantSave()
|
|||
|
||||
public function setType(string $type)
|
||||
{
|
||||
$type = str($type)->lower()->value();
|
||||
$type = str($type)->lower()->slug()->value();
|
||||
ray('type', $type);
|
||||
if ($this->loading) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue