30 lines
600 B
PHP
30 lines
600 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SofaScorePlayerPerSeason extends Model
|
|
{
|
|
protected $fillable = [
|
|
'ss_player_id',
|
|
'ss_team_id',
|
|
'season',
|
|
'events_played_home',
|
|
'events_played_away',
|
|
'minutes_played_home',
|
|
'minutes_played_away',
|
|
'goals',
|
|
'fouls',
|
|
'cards',
|
|
'offsides',
|
|
'shots_on_target',
|
|
'shots_off_target',
|
|
];
|
|
|
|
public function details()
|
|
{
|
|
return $this->belongsTo(StatistikoDetail::class, 'ss_player_id', 'ss_player_id');
|
|
}
|
|
}
|