Index: database/factories/DepartmentFactory.php
===================================================================
--- database/factories/DepartmentFactory.php	(revision ea7b12a15d1afa472a54d5b8c75c55917907862e)
+++ database/factories/DepartmentFactory.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
@@ -24,10 +24,10 @@
     public function definition()
     {
-        $location = $this->faker->unique()->numberBetween('1', '9');
-        Storage::disk('local')->makeDirectory('Departments/' . $location);
+        $location = $this->faker->unique()->numberBetween(1, 15);
+        Storage::disk('uploads')->makeDirectory('Departments/' . $location);
         return [
             'name' => "Department" . $this->faker->unique()->firstName(),
             'code' => $location,
-            'location' => Storage::disk('local')->path('') . 'Departments' . DIRECTORY_SEPARATOR . $location,
+            'location' => 'Departments' . DIRECTORY_SEPARATOR . $location,
             'user_id' => $this->faker->numberBetween('1', '2'),
             'created_at' => Carbon::now()
Index: database/factories/DocumentFactory.php
===================================================================
--- database/factories/DocumentFactory.php	(revision ea7b12a15d1afa472a54d5b8c75c55917907862e)
+++ 	(revision )
@@ -1,43 +1,0 @@
-<?php
-
-namespace Database\Factories;
-
-use App\Models\Department;
-use App\Models\Document;
-use Carbon\Carbon;
-use Illuminate\Database\Eloquent\Factories\Factory;
-use Illuminate\Support\Facades\Storage;
-
-class DocumentFactory extends Factory
-{
-    /**
-     * The name of the factory's corresponding model.
-     *
-     * @var string
-     */
-    protected $model = Document::class;
-
-    /**
-     * Define the model's default state.
-     *
-     * @return array
-     */
-    public function definition()
-    {
-
-        $deptID = "5";
-        $name = $this->faker->unique()->firstName();
-        Storage::disk('local')->makeDirectory('Departments' . DIRECTORY_SEPARATOR . $deptID . DIRECTORY_SEPARATOR . $name);
-
-        return [
-            'arch_id' => $deptID . "/" . $this->faker->unique()->randomNumber(),
-            'name' => $name,
-            'description' => $this->faker->realText(),
-            'user_id' => $this->faker->numberBetween('1', '2'),
-            'department_id' => $deptID,
-            'is_important' => $this->faker->boolean,
-            'created_at' => $this->faker->dateTime()
-        ];
-
-    }
-}
Index: database/factories/FolderFactory.php
===================================================================
--- database/factories/FolderFactory.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
+++ database/factories/FolderFactory.php	(revision c6b84df06586305606df5b76204a64cdc63b09a2)
@@ -0,0 +1,47 @@
+<?php
+
+namespace Database\Factories;
+
+use App\Models\Department;
+use App\Models\Folder;
+use Carbon\Carbon;
+use Illuminate\Database\Eloquent\Factories\Factory;
+use Illuminate\Support\Facades\Storage;
+
+class FolderFactory extends Factory
+{
+    /**
+     * The name of the factory's corresponding model.
+     *
+     * @var string
+     */
+    protected $model = Folder::class;
+
+    /**
+     * Define the model's default state.
+     *
+     * @return array
+     */
+    public function definition()
+    {
+
+        $deptId = $this->faker->numberBetween('1', '15');
+        $deptCode = Department::find($deptId)->code;
+        $name = $this->faker->unique()->firstName();
+
+        $location = 'Departments' . DIRECTORY_SEPARATOR . $deptCode . DIRECTORY_SEPARATOR . $name;
+        Storage::disk('uploads')->makeDirectory($location);
+
+
+        return [
+            'arch_id' => $deptCode . "/" . $this->faker->unique()->randomNumber(),
+            'name' => $name,
+            'note' => $this->faker->realText(),
+            'location' => $location,
+            'user_id' => $this->faker->numberBetween('1', '2'),
+            'department_id' => $deptId,
+            'is_important' => $this->faker->boolean,
+            'created_at' => $this->faker->dateTime()
+        ];
+    }
+}
