This commit is contained in:
salam committed 2026-10-04 15:25:03 +02:00
1 parent 9bcd4432c6
commit 6f92f9e1d5
1209 files changed
+220940

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use MongoDB\Laravel\Eloquent\HybridRelations;
class SofaScoreTournament extends Model
{
use HybridRelations;
protected $connection = 'mariadb';
protected $fillable = [
'id',
'sport_id',
'tournament_id',
'sofa_score_category_id',
'name',
'slug',
'enabled',
];
public function sport()
{
return $this->belongsTo(Sport::class);
}
public function sofascore_category()
{
return $this->belongsTo(SofaScoreCategory::class, 'sofa_score_category_id', 'id');
}
}