This commit is contained in:
salam committed 2026-07-30 18:57:44 +02:00
1 parent c394f7afba
commit 44af3f2caa
21 files changed
+222 -151

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class RosaTournament extends Model
{
//
}
+1 -1
View File
@@ -8,7 +8,7 @@ class SofaScorePlayerPerSeason extends Model
{
protected $fillable = [
'ss_player_id',
'tx_team_id',
'ss_team_id',
'season',
'events_played_home',
'events_played_away',
+2 -2
View File
@@ -35,11 +35,11 @@ class StatisticFixtures extends Model
public function home()
{
return $this->belongsTo(Element::class);
return $this->belongsTo(SofaScoreRosa::class, 'home_id', 'ss_team_id');
}
public function away()
{
return $this->belongsTo(Element::class);
return $this->belongsTo(SofaScoreRosa::class, 'away_id', 'ss_team_id');
}
}
+1 -1
View File
@@ -80,6 +80,6 @@ class StatistikoPlayer extends Model
public function details()
{
return $this->belongsTo(StatistikoDetail::class, 'tm_player_id', 'tm_player_id');
return $this->belongsTo(StatistikoDetail::class, 'ss_player_id', 'ss_player_id');
}
}