Quellcode durchsuchen

back update with api

Ursprung
Commit
377ef3f4ea

+ 1
- 1
app/Http/Controllers/Api/ProjectController.php Datei anzeigen

39
         $result["tags"] = $tags;
39
         $result["tags"] = $tags;
40
 
40
 
41
         //文章列表
41
         //文章列表
42
-        $projects = Project::where("visilbe", 1);
42
+        $projects = Project::query();
43
         if($request->has('region')){
43
         if($request->has('region')){
44
             $projects->where("region_id", $request->input('region'));
44
             $projects->where("region_id", $request->input('region'));
45
         }
45
         }

+ 1
- 0
database/migrations/2025_09_18_091406_create_projects_table.php Datei anzeigen

26
             $table->json("contact_unit")->comment("物管單位");
26
             $table->json("contact_unit")->comment("物管單位");
27
             $table->json("contact_phone")->comment("物管電話");
27
             $table->json("contact_phone")->comment("物管電話");
28
             $table->json("inversment_phone")->comment("招商電話");
28
             $table->json("inversment_phone")->comment("招商電話");
29
+            $table->unsignedInteger('order')->default(0)->comment("排序");
29
             $table->timestamps();
30
             $table->timestamps();
30
             $table->softDeletes();
31
             $table->softDeletes();
31
         });
32
         });