faker->unique()->numberBetween(10, 10); Storage::disk('uploads')->makeDirectory('Departments/' . $location); return [ 'name' => "Department" . ' ' . $this->faker->unique()->firstName(), 'code' => $location, 'location' => 'Departments' . DIRECTORY_SEPARATOR . $location, 'no_of_folders' => 0, 'user_id' => "1", 'created_at' => now() ]; } }