Files
nuhodds_fi4/app/Models/SofaScoreDayTournament.php

25 lines
462 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class SofaScoreDayTournament extends Model
{
protected $connection = 'mariadb';
protected $table = 'sofa_score_day_tournaments';
protected $fillable = [
'id',
'tournament_id',
'sport_id',
'day',
];
public function tournament()
{
return $this->belongsTo(SofaScoreTournament::class, 'tournament_id', 'tournament_id');
}
}