factory(User::class, 5)->create(); code example
Example: User::factory()->create(
$user = User::factory()->create();
$response = $this->actingAs($user, 'api')->json('POST', ...
$user = User::factory()->create();
$response = $this->actingAs($user, 'api')->json('POST', ...