From a57ec566878c454dbc49f542c8ca7f3582726a20 Mon Sep 17 00:00:00 2001 From: Forms Dev Date: Fri, 10 Nov 2023 17:51:51 +0530 Subject: [PATCH] fix template api for public list --- app/Http/Controllers/TemplateController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TemplateController.php b/app/Http/Controllers/TemplateController.php index 04a1b2acc..1137a5da8 100644 --- a/app/Http/Controllers/TemplateController.php +++ b/app/Http/Controllers/TemplateController.php @@ -35,7 +35,7 @@ public function index(Request $request) } }) ->when(!Auth::check(), function ($query) { - return $query->publiclyListed(); + $query->where('publicly_listed', true); }) ->orderByDesc('created_at') ->get();