feat: implement AdminController with dashboard caching, data import/export, and advanced autocomplete functionality

This commit is contained in:
Ümit Tunç
2026-04-28 23:19:17 +03:00
parent bd6c775e97
commit b59ad54511
+2 -2
View File
@@ -1160,8 +1160,8 @@ public function fuzzyAutocomplete(string $tableName, ?string $columnName = null)
$j = @json_decode($c->json,true); $j = @json_decode($c->json,true);
$alt = Contents::where("kid",$id)->orWhere("kid",$c->slug)->orderBy("s","ASC")->simplePaginate($miktar); $alt = Contents::where("kid",$id)->orWhere("kid",$c->slug)->orderBy("s","ASC")->simplePaginate($miktar);
if($c->type!="") { if($c->type!="") {
$content_type = Types::where("title",$c->type)->first(); // content type $ct = Types::where("title",$c->type)->first(); // content type
$content_type = @explode(",",$content_type->fields); $content_type = $ct ? explode(",",$ct->fields) : [];
} }
if($c->tkid=="") { if($c->tkid=="") {
DB::table("contents") DB::table("contents")