storage url o'zgartirildi
This commit is contained in:
@@ -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()]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user