json('GET', '/api/contacts'); $response->assertStatus(401); $response->assertJsonFragment([ 'message' => 'Unauthenticated.', ]); } }