where('status', 'Published'); } public function apply($model, RepositoryInterface $repository) { return $this->onlyPublished($model); } }