factory(App\User::class, 30)->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', ...