public function apply($model, Repository $repository) { $model = $model->where('email', '=', $this->str); return $model; }