Fix some egregious search and replace action...
This commit is contained in:
parent
016c4f4782
commit
62fd299fa2
|
@ -39,7 +39,7 @@ class APIKeyPolicy
|
||||||
})->values();
|
})->values();
|
||||||
});
|
});
|
||||||
|
|
||||||
return $permissions->setSearchTerm($permission, true) !== false;
|
return $permissions->search($permission, true) !== false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -32,7 +32,7 @@ class ServerPolicy
|
||||||
})->values();
|
})->values();
|
||||||
});
|
});
|
||||||
|
|
||||||
return $permissions->setSearchTerm($permission, true) !== false;
|
return $permissions->search($permission, true) !== false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -65,7 +65,7 @@ class NodeRepository extends EloquentRepository implements NodeRepositoryInterfa
|
||||||
$instance = $this->getBuilder()->with('location')->withCount('servers');
|
$instance = $this->getBuilder()->with('location')->withCount('servers');
|
||||||
|
|
||||||
if ($this->hasSearchTerm()) {
|
if ($this->hasSearchTerm()) {
|
||||||
$instance->setSearchTerm($this->getSearchTerm());
|
$instance->search($this->getSearchTerm());
|
||||||
}
|
}
|
||||||
|
|
||||||
return $instance->paginate(25, $this->getColumns());
|
return $instance->paginate(25, $this->getColumns());
|
||||||
|
|
Loading…
Reference in New Issue