rapper magloo nigeria fixtures ok

This commit is contained in:
salam committed 2026-01-03 12:29:17 +01:00
1 parent 34690292aa
commit 9e7384daf8
46 files changed
+334 -1502

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ class Event extends Model
'bet365_id',
'_1xbet_id',
'bwin_id',
'magnig_id',
'magken_id',
'lognig_id',
'logcol_id',
'starttime',
'sport_id',
'country_id',
-1
View File
@@ -12,7 +12,6 @@ class EventBookmaker extends Model
'bmoid',
'send_status',
'bkm_starttime',
'last_check_at',
];
public function event()
+2
View File
@@ -14,6 +14,8 @@ class Mapper extends Model
'sport_id',
'provider_id',
'starttime',
'country',
'country_id',
'group',
'group_id',
'group_cc',
-1
View File
@@ -21,7 +21,6 @@ class Odds2way extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -21,7 +21,6 @@ class Odds2wayS1 extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -22,7 +22,6 @@ class Odds3way extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -22,7 +22,6 @@ class OddsDc extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -21,7 +21,6 @@ class OddsDnb extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -21,7 +21,6 @@ class OddsGgng extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -22,7 +22,6 @@ class OddsHandicap extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -22,7 +22,6 @@ class OddsHandicapQ1 extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -21,7 +21,6 @@ class OddsQualify extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -22,7 +22,6 @@ class OddsTotal extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
-1
View File
@@ -22,7 +22,6 @@ class OddsTotalQ1 extends Model
'margin',
'flag',
'nuh_check',
'last_check_at',
'source_updated_at',
'add_time',
'updated_at',
+14 -3
View File
@@ -7,13 +7,24 @@ use Illuminate\Database\Eloquent\Model;
class Sport extends Model
{
public static function map($field, $_limit = [])
public static function map($field, $reverse = false, $limit = [])
{
if (! in_array($field, ['bapi', 'bwin', 'b365', 'logi', 'magl'])) {
Notice::note('Sport::map wrong option! Possible options: bapi, bwin, b365, logi, magl', 'r', 1);
}
return Sport::where('is_active', 1)->whereNotIn('id', $_limit)->pluck($field, 'id')->toArray();
if ($reverse) {
if ($limit) {
return Sport::where('is_active', 1)->whereIn('id', $limit)->pluck('id', $field)->toArray();
} else {
return Sport::where('is_active', 1)->pluck('id', $field)->toArray();
}
} else {
if ($limit) {
return Sport::where('is_active', 1)->whereIn($limit, 'id')->pluck('id', $field)->toArray();
} else {
return Sport::where('is_active', 1)->pluck($field, 'id')->toArray();
}
}
}
}