Added relations to report search

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2022-08-02 23:50:10 -07:00
parent b52c00d49b
commit 9acfceba29
3 changed files with 37 additions and 9 deletions
@@ -20,7 +20,7 @@ class ReportsController extends Controller
{
$this->authorize('reports.view');
$actionlogs = Actionlog::with('item', 'user', 'target', 'location');
$actionlogs = Actionlog::with('item', 'user', 'admin', 'target', 'location');
if ($request->filled('search')) {
$actionlogs = $actionlogs->TextSearch(e($request->input('search')));