]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Controllers/AuditLogController.php
respective book and chapter structure added.
[bookstack] / app / Activity / Controllers / AuditLogController.php
index a90f45f3aa8f8615aad156b2b1a7b9dff22f1900..641106d7f450697b1c189b128264feecc46c9b06 100644 (file)
@@ -4,7 +4,7 @@ namespace BookStack\Activity\Controllers;
 
 use BookStack\Activity\ActivityType;
 use BookStack\Activity\Models\Activity;
-use BookStack\Http\Controllers\Controller;
+use BookStack\Http\Controller;
 use BookStack\Util\SimpleListOptions;
 use Illuminate\Http\Request;
 
@@ -32,7 +32,7 @@ class AuditLogController extends Controller
 
         $query = Activity::query()
             ->with([
-                'entity' => fn ($query) => $query->withTrashed(),
+                'loggable' => fn ($query) => $query->withTrashed(),
                 'user',
             ])
             ->orderBy($listOptions->getSort(), $listOptions->getOrder());