wip
This commit is contained in:
1 parent
60379bcab8
commit
5c9745b1da
19 files changed
+167
-105
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user