35 lines
713 B
PHP
35 lines
713 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SofaScorePlayerPerSeason extends Model
|
|
{
|
|
protected $table = 'ss_player_seasons';
|
|
|
|
protected $fillable = [
|
|
'ss_player_id',
|
|
'ss_team_id',
|
|
'season',
|
|
'total_events',
|
|
'total_min',
|
|
'average_min',
|
|
'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');
|
|
}
|
|
}
|