1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 11:52:34 +01:00

Search IP by partial-equal

This commit is contained in:
Zero 2021-12-07 17:04:11 +08:00
parent 2fd7b1f0d5
commit 72d19968dd

View File

@ -46,7 +46,7 @@ class AuditLogController extends Controller
$query->where('created_at', '<=', $listDetails['date_to']);
}
if ($listDetails['ip']) {
$query->where('ip', '=', $listDetails['ip']);
$query->where('ip', 'like', $listDetails['ip'] . "%");
}
$activities = $query->paginate(100);