Ver código fonte

查询重复的 add whereNull('channal')

visuddhinanda 2 anos atrás
pai
commit
553a1b7ec8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Http/Controllers/DhammaTermController.php

+ 1 - 1
app/Http/Controllers/DhammaTermController.php

@@ -214,7 +214,7 @@ class DhammaTermController extends Controller
             $isDoesntExist = $table->where('channal',$request->get("channel"))
             $isDoesntExist = $table->where('channal',$request->get("channel"))
                     ->doesntExist();
                     ->doesntExist();
         }else{
         }else{
-            $isDoesntExist = $table->where('language',$request->get("language"))
+            $isDoesntExist = $table->whereNull('channal')->where('language',$request->get("language"))
                 ->doesntExist();
                 ->doesntExist();
         }
         }