refactor: dynamic calls to static

This commit is contained in:
HDVinnie
2021-04-27 21:35:23 -04:00
parent 4fe76bcc10
commit 71ff333eb4
5 changed files with 15 additions and 15 deletions
@@ -360,7 +360,7 @@ class TorrentController extends BaseController
$description .= '%'.$keyword.'%';
}
$torrent = $torrent->newQuery();
$torrent = $torrent::newQuery();
if ($request->has('name') && $request->input('name') != null) {
$torrent->where(function ($query) use ($search) {