This commit is contained in:
salam committed 2025-12-18 19:22:36 +01:00
1 parent 60379bcab8
commit 5c9745b1da
19 files changed
+167 -105

No files matched your search

+9 -1
View File
@@ -2,9 +2,17 @@
namespace App\Models;
use App\Utilities\Notice;
use Illuminate\Database\Eloquent\Model;
class Sport extends Model
{
//
public static function map($field)
{
if (! in_array($field, ['bapi', 'bwin', 'b365', 'logi', 'magl'])) {
Notice::note('Wrong Option! Possible options: bapi, bwin, b365, logi, magl', 'r', 1);
}
return Sport::select($field, 'id')->where('is_active', 1)->get()->useKey('id')->toArray();
}
}