diff --git a/app/Policies/APIKeyPolicy.php b/app/Policies/APIKeyPolicy.php index e8556ca9c..69ce45c04 100644 --- a/app/Policies/APIKeyPolicy.php +++ b/app/Policies/APIKeyPolicy.php @@ -39,7 +39,7 @@ class APIKeyPolicy })->values(); }); - return $permissions->setSearchTerm($permission, true) !== false; + return $permissions->search($permission, true) !== false; } /** diff --git a/app/Policies/ServerPolicy.php b/app/Policies/ServerPolicy.php index 8891fa87f..9b4db6f05 100644 --- a/app/Policies/ServerPolicy.php +++ b/app/Policies/ServerPolicy.php @@ -32,7 +32,7 @@ class ServerPolicy })->values(); }); - return $permissions->setSearchTerm($permission, true) !== false; + return $permissions->search($permission, true) !== false; } /** diff --git a/app/Repositories/Eloquent/NodeRepository.php b/app/Repositories/Eloquent/NodeRepository.php index ed0dce003..61d93927e 100644 --- a/app/Repositories/Eloquent/NodeRepository.php +++ b/app/Repositories/Eloquent/NodeRepository.php @@ -65,7 +65,7 @@ class NodeRepository extends EloquentRepository implements NodeRepositoryInterfa $instance = $this->getBuilder()->with('location')->withCount('servers'); if ($this->hasSearchTerm()) { - $instance->setSearchTerm($this->getSearchTerm()); + $instance->search($this->getSearchTerm()); } return $instance->paginate(25, $this->getColumns());