withTrashed(); } elseif ($withTrashed == TrashedStatus::ONLY) { $query = $query->onlyTrashed(); } return $query; } }