Closed gihansalpo closed 6 years ago
You can already access other input values with the input()
method.
For your use case you would do:
public function company($id)
{
return $this->where('foo', $this->input('bar'))->where('company_id', $id);
}
I think it will be useful if the filterInput function changed as following,
ModelFilter.php
then the example filter function would like bellow. inside that function, for an example, we can write any condition that id depends on other args parameters
class UserFilter