isAdmin()) { // return $model->withTrashed(); // } return $model; } public function apply($model, RepositoryInterface $repository) { return $this->onlyShowDeletedForAdmins($model); } }