laravel 自動new一個對象是怎么實現的呢有沒有講解laravel實現依賴注入的文章,或源碼解讀
public function __construct(Contract $contract,OwnerRepository $owner)
{
$this->model = $contract;
$this->owner = $owner;
}
添加回答
舉報
0/150
提交
取消