create(); $this->assertTrue($log->account()->exists()); } /** @test */ public function it_belongs_to_an_author() { $log = AuditLog::factory()->create(); $this->assertTrue($log->account()->exists()); } /** @test */ public function it_returns_the_object_attribute(): void { $auditLog = AuditLog::factory()->create([]); $this->assertEquals( 1, $auditLog->object->{'user'} ); } }