belongsTo(JclqScore::class, 'match_id','match_id'); } public function getCompetitionLogoUrlAttribute() { if (!$this->competition_id) { return ''; } return JingcaiLogoService::lqCompetition($this->competition_id); } public function getHomeTeamLogoUrlAttribute() { if (!$this->home_team_id) { return ''; } return JingcaiLogoService::lqTeam($this->home_team_id); } public function getAwayTeamLogoUrlAttribute() { if (!$this->competition_id) { return ''; } return JingcaiLogoService::lqTeam($this->away_team_id); } public function getStartWeekAttribute() { if (!$this->start_time) { return ''; } return Helps::getWeek($this->start_time); } public function getStartTimeStrAttribute() { if (!$this->start_time) { return ''; } return date('m-d H:i', strtotime($this->start_time)); } }