lip 4 주 전
부모
커밋
1e2cfeae25
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/Models/SportLeague.php

+ 2 - 2
app/Models/SportLeague.php

@@ -13,7 +13,7 @@ class SportLeague extends BaseModel
     const CREATED_AT = 'create_time';
     const UPDATED_AT = 'update_time';
 
-    public static function getLeagueName($league_en){
-        return self::where(['league_en' => $league_en])->value('league');
+    public static function getLeagueName($league_id){
+        return self::where(['league_id' => $league_id])->value('league_name');
     }
 }