Files
nuhodds_fi4/app/Models/StatistikoPlayer.php
T
2026-04-21 15:54:35 +02:00

43 lines
765 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 = [
'player_id',
'name',
'full_name',
'birthdate',
'height',
'nationality',
'position',
'sport_radar_id',
'id_squadra_tm',
'rigorist',
'national_team_id',
'last_update',
'league_code',
'team_code',
'team_name',
'created_at',
'updated_at',
];
protected function casts(): array
{
return [
'birthdate' => 'date',
'last_update' => 'date',
];
}
}