问答 / 0 / 0 / 创建于 6年前
如果你的某些类的依赖项不能通过容器去解析,那你可以通过将它们作为关联数组传递到 makeWith 方法来注入它们 $api = $this->app->makeWith('HelpSpot\API', ['id' => 1]);
$api = $this->app->makeWith('HelpSpot\API', ['id' => 1]);
我要举报该,理由是:
推荐文章: