provider, clients migration & resource

This commit is contained in:
salam committed 2025-08-24 08:10:57 +02:00
1 parent ab44b05fa3
commit cbe68f78be
56 files changed
+721 -289

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class OddsQualify extends Model
{
protected $fillable = [
'id',
'event_id',
'sport_id',
'matchpart_id',
'bookmaker_id',
'provider_id',
'htq',
'atq',
'margin',
'flag',
'check',
'add_time',
'updated_at',
];
protected $casts = [
'matchpart_id' => EnumMatchpart::class,
];
public function sport()
{
return $this->belongsTo(Sport::class);
}
public function bookmaker()
{
return $this->belongsTo(Bookmaker::class);
}
public function matchpart()
{
return $this->belongsTo(Matchpart::class);
}
public function event()
{
return $this->belongsTo(Event::class);
}
public function provider()
{
return $this->belongsTo(Provider::class);
}
}