Shift with red gradient lettering
Loading navigation...

resolve helper

Laravel

Update your code to use resolve helper when resolving instances from the container.

Before

$this->app->make(Transistor::class);
$this->app->makeWith(Transistor::class, ['id' => 1]);
app()->make(Transistor::class);
app(Transistor::class, ['id' => 1]);

After

resolve(Transistor::class);
resolve(Transistor::class, ['id' => 1]);
resolve(Transistor::class);
resolve(Transistor::class, ['id' => 1]);

← Back to the Workbench Tasks