41 lines
762 B
PHP
41 lines
762 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use MongoDB\Laravel\Eloquent\Model;
|
|
|
|
class StatistikoPlayer extends Model
|
|
{
|
|
protected $connection = 'mongodb';
|
|
|
|
protected $table = 'player';
|
|
|
|
protected $fillable = [
|
|
'id_giocatore',
|
|
'giocatore',
|
|
'data_di_nascita',
|
|
'altezza',
|
|
'nazionalita',
|
|
'posizione',
|
|
'sport_radar_id',
|
|
'id_squadra_tm',
|
|
'nome_completo',
|
|
'rigorista',
|
|
'national_team_id',
|
|
'data_aggiornamento',
|
|
'league_code',
|
|
'team_code',
|
|
'team_name',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'data_di_nascita' => 'date',
|
|
'data_aggiornamento' => 'date',
|
|
];
|
|
}
|
|
}
|