From b59ad545110b98efd32229be0fc5ab846ddf29d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Tue, 28 Apr 2026 23:19:17 +0300 Subject: [PATCH] feat: implement AdminController with dashboard caching, data import/export, and advanced autocomplete functionality --- app/Http/Controllers/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index abc603b..04edc16 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -1160,8 +1160,8 @@ public function fuzzyAutocomplete(string $tableName, ?string $columnName = null) $j = @json_decode($c->json,true); $alt = Contents::where("kid",$id)->orWhere("kid",$c->slug)->orderBy("s","ASC")->simplePaginate($miktar); if($c->type!="") { - $content_type = Types::where("title",$c->type)->first(); // content type - $content_type = @explode(",",$content_type->fields); + $ct = Types::where("title",$c->type)->first(); // content type + $content_type = $ct ? explode(",",$ct->fields) : []; } if($c->tkid=="") { DB::table("contents")