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 a note field", 'location' => $location, 'user_id' => $this->faker->numberBetween('1', '2'), 'department_id' => $deptId, 'is_important' => $this->faker->boolean, 'created_at' => now() ]; } }