|
@@ -54,7 +54,7 @@ class ExportCommand extends Command
|
|
|
continue;
|
|
|
}
|
|
|
/** @var Category $category */
|
|
|
- $category = Category::where("name", $v[1])->value("parent_id");
|
|
|
+ $category = Category::where("name", $v[1])->first();
|
|
|
$data = [
|
|
|
'name' => $v[0],
|
|
|
'parent_id' => optional($category)->id ?? 0,
|