Fix on merchandises
This commit is contained in:
@@ -53,6 +53,18 @@ class Merchandises
|
||||
return $item->id;
|
||||
}
|
||||
|
||||
public static function storeFull($data)
|
||||
{
|
||||
$images = $data['images'] ?? false;
|
||||
$tags = $data['tags'] ?? false;
|
||||
unset($data['images']);
|
||||
unset($data['tags']);
|
||||
$merchandise = self::store($data);
|
||||
self::storeImages($merchandise, $images);
|
||||
self::storeTags($merchandise, $tags);
|
||||
return $merchandise;
|
||||
}
|
||||
|
||||
public static function create($data)
|
||||
{
|
||||
return Merchandise::create($data);
|
||||
|
||||
Reference in New Issue
Block a user