24 lines
476 B
PHP
24 lines
476 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Services\Tasks\Alarm;
|
|
|
|
use App\Models\MultilineSetting;
|
|
|
|
class AlarmMultilineSetting
|
|
{
|
|
public static function get($sport_id)
|
|
{
|
|
$res = MultilineSetting::where('sport_id', $sport_id)->get();
|
|
|
|
$arr = [];
|
|
foreach ($res as $value) {
|
|
$arr[$value->id] = [
|
|
'table' => $value->table,
|
|
'oddnames' => $value->oddnames,
|
|
];
|
|
}
|
|
|
|
return $arr;
|
|
}
|
|
}
|