public function apply($model, Repository $repository) { $model = $model->where('created_at', '<', $this->date->format('Y-m-d')); return $model; }