From cfe13b42b9a1823e593271215f3a05bbcd479a6f Mon Sep 17 00:00:00 2001 From: kiritokatklian Date: Mon, 11 Nov 2024 23:21:33 +0100 Subject: [PATCH] [Update] Scout - Added `trackable.is_nsfw` to `UserLibrary`'s filterable attributes --- config/scout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/scout.php b/config/scout.php index fd6464d5..52ad6d12 100644 --- a/config/scout.php +++ b/config/scout.php @@ -186,7 +186,7 @@ \App\Models\UserLibrary::TABLE_NAME => [ 'searchableAttributes' => ['trackable.original_title', 'trackable.title', 'trackable.synonym_titles', 'trackable.translations', 'trackable.synopsis', 'trackable.tagline'], 'sortableAttributes'=> ['ended_at', 'started_at', 'status', 'created_at', 'update_at'], - 'filterableAttributes'=> ['id', 'user_id', 'trackable.letter', 'trackable_id', 'trackable_type', 'status', 'started_at', 'ended_at'], + 'filterableAttributes'=> ['id', 'user_id', 'trackable.letter', 'trackable.is_nsfw', 'trackable_id', 'trackable_type', 'status', 'started_at', 'ended_at'], ], \App\Models\User::TABLE_NAME => [ 'searchableAttributes' => ['slug', 'username', 'biography'],