storage url o'zgartirildi

This commit is contained in:
2026-04-28 17:53:06 +05:00
parent 290dd2dddb
commit b8a4efadc2
5 changed files with 22 additions and 14 deletions

View File

@@ -58,13 +58,6 @@ class Update
private function syncCategories()
{
$cats = $this->product->categories()->get();
$cats = array_map(function ($cat) {
return $cat['id'];
}, $cats->toArray());
$this->product->categories()->detach($cats);
$this->product->categories()->attach([$this->request->getCategoryID()]);
$this->product->categories()->sync([$this->request->getCategoryID()]);
}
}