public function apply($model, Repository $repository) { $model = $model->orderBy('created_at', 'DESC'); return $model; }