Benutzer :: Factory ()-> erstellen (

$user = User::factory()->create();

$response = $this->actingAs($user, 'api')->json('POST', ...
Mysterious Macaque