create(); $this->assertTrue($company->vault()->exists()); } /** @test */ public function it_has_many_contacts(): void { $company = Company::factory()->create(); Contact::factory()->count(2)->create([ 'company_id' => $company->id, ]); $this->assertTrue($company->contacts()->exists()); } }