Add (jsonld)

This commit is contained in:
2023-09-26 00:09:51 +08:00
parent 2c12b8857d
commit 8da977daeb
23 changed files with 238 additions and 85 deletions

View File

@@ -12,10 +12,10 @@ class NewCategorySeeder extends Seeder
*/
public function run(): void
{
$node = Category::create(['name' => 'AI', 'short_name' => 'AI']);
$node = Category::create(['name' => 'AI', 'short_name' => 'AI']);
$parent = Category::find(37);
$parent = Category::find(37);
$node->appendToNode($parent)->save();
$node->appendToNode($parent)->save();
}
}