wip
This commit is contained in:
1 parent
0afb7944bc
commit
01e22c4c6b
11 files changed
+19
-13
No files matched your search
@@ -13,7 +13,7 @@ class StatistikoDetail extends Model
|
||||
protected $table = 'details';
|
||||
|
||||
protected $fillable = [
|
||||
'player_id',
|
||||
'tm_player_id',
|
||||
'name',
|
||||
'full_name',
|
||||
'birthdate',
|
||||
|
||||
@@ -11,8 +11,10 @@ class StatistikoPlayer extends Model
|
||||
protected $table = 'players';
|
||||
|
||||
protected $fillable = [
|
||||
'sport_id',
|
||||
'match_id',
|
||||
'player_id',
|
||||
'ss_player_id',
|
||||
'tm_player_id',
|
||||
'activeteam_id',
|
||||
'playersubstitute_id',
|
||||
'goals',
|
||||
@@ -80,6 +82,6 @@ class StatistikoPlayer extends Model
|
||||
|
||||
public function details()
|
||||
{
|
||||
return $this->belongsTo(StatistikoDetail::class, 'player_id', 'player_id');
|
||||
return $this->belongsTo(StatistikoDetail::class, 'tm_player_id', 'tm_player_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user