Answer the question
In order to leave comments, you need to log in
Laravel IoC how to make a completed model passed to a dependency?
Hello!
There are classes Company, CompanyFilter and RequestFilter
Company - model Illuminate\Database\Eloquent\Model
CompanyFilter has the following constructor
public function __construct(RequestFilter $requestFilter, Company $company)
{
parent::__construct($requestFilter, $company);
}
public function __construct(Request $request)
{
$this->request = $request;
}
public function show(CompanyFilter $companyFilter)
{
//...
}
public function show(Request $request, Company $company)
{
//...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question