// Instead of

$instance1 = app($class, $parameters);

// or

$instance2 = app()->make($class, $parameters);

// or

$instance3 = Container::getInstance()->make($class, $parameters);


// You may have to do something like

$instance4 = new $class($parameters[0]);

// but..., if you have more than one constructor argument, you may

$reflection = new ReflectionClass($class);
$instance5 = $reflection->newInstanceArgs($parameters);

// or you can just go Vanilla PHP and do

$instance6 = new YourClass($whatever, $parameter);