belongsTo(Sport::class)->where('is_active', 1); } public static function options($arr = []) { return Bookmaker::query()->whereIn('id', $arr)->pluck('name', 'id'); } 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; } }