withoutExceptionHandling(); $this->login(); Member::factory()->defaults()->has(CourseMember::factory()->for(Course::factory()), 'courses')->create(['firstname' => '::firstname']); $this->get('/member')->assertInertia('member/Index', ['firstname' => '::firstname'], 'data.data.0'); } }