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; } }