|
|
@@ -5,7 +5,7 @@ namespace App\Models;
|
|
|
class SportLeague extends BaseModel
|
|
|
{
|
|
|
protected $table = 'sport_league';
|
|
|
- protected $fillable = ['league_id', 'league_en', 'league_name', 'logo', 'status','country','season','round','standings'];
|
|
|
+ protected $fillable = ['league_id', 'league_en', 'league', 'logo', 'status','country','season','round','standings'];
|
|
|
public $timestamps = true;
|
|
|
protected $dateFormat = 'U'; // U 代表 UNIX 时间戳(int)
|
|
|
|
|
|
@@ -14,6 +14,6 @@ class SportLeague extends BaseModel
|
|
|
const UPDATED_AT = 'update_time';
|
|
|
|
|
|
public static function getLeagueName($league_id){
|
|
|
- return self::where(['league_id' => $league_id])->value('league_name');
|
|
|
+ return self::where(['league_id' => $league_id])->value('league');
|
|
|
}
|
|
|
}
|