withParams = $withParams; } /** * @param Builder $model * @param RepositoryInterface $repository * @return mixed|void */ public function apply( $model, RepositoryInterface $repository ) { $model = $model->with($this->withParams); return $model; } }