diff --git a/catch/permissions/database/seeds/DepartmentsSeed.php b/catch/permissions/database/seeds/DepartmentsSeed.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/catch/permissions/database/seeds/DepartmentsSeed.php @@ -0,0 +1 @@ + 1, + 'department_name' => '总部', + 'parent_id' => 0, + ], + [ + 'id' => 2, + 'department_name' => '北京总部', + 'parent_id' => 1, + ], + [ + 'id' => 2, + 'department_name' => '南京总部', + 'parent_id' => 1, + ], + ]; + + foreach ($data as $item) { + \catchAdmin\permissions\model\Department::create($item); + } + } +}