filters ok

This commit is contained in:
salam committed 2026-01-30 09:52:43 +01:00
1 parent 8e9bb0eacb
commit 98d92b2ee3
16 files changed
+365 -189

No files matched your search

+14
View File
@@ -22,4 +22,18 @@ class Bookmaker extends Model
{
return $this->belongsTo(Sport::class)->where('is_active', 1);
}
public static function map()
{
$arr = [];
$res = Bookmaker::query()->where('is_active', 1)->get();
foreach ($res as $value) {
$arr[$value->id] = [
'name' => $value->name,
'icon' => $value->icon,
];
}
return $arr;
}
}