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