wip fixes
This commit is contained in:
1 parent
eb66222c85
commit
ed9e1db12e
8 files changed
+46
-195
No files matched your search
@@ -11,6 +11,8 @@ class SofaScoreRosa extends Model
|
||||
|
||||
protected $connection = 'mariadb';
|
||||
|
||||
protected $table = 'sofa_score_rosas';
|
||||
|
||||
protected $fillable = [
|
||||
'sport_id',
|
||||
'cc',
|
||||
@@ -31,7 +33,7 @@ class SofaScoreRosa extends Model
|
||||
|
||||
public function sofascore_category()
|
||||
{
|
||||
return $this->belongsTo(SofaScoreCategory::class, 'country_id', 'country_id')->where('in_soccer', 1);
|
||||
return $this->belongsTo(SofaScoreCategory::class, 'country_id', 'country_id');
|
||||
}
|
||||
|
||||
public function tournament_rosa()
|
||||
|
||||
@@ -4,8 +4,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use MongoDB\Laravel\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use MongoDB\Laravel\Eloquent\Model;
|
||||
|
||||
class StatistikoEvent extends Model
|
||||
{
|
||||
@@ -48,7 +48,6 @@ class StatistikoEvent extends Model
|
||||
'starttime' => 'datetime',
|
||||
];
|
||||
|
||||
|
||||
public function sport(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Sport::class, 'sport_id', 'id');
|
||||
|
||||
Reference in new issue
Block a user