Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Field Country Laravel Package

baks-dev/field-country

View on GitHub
Deep Wiki
Context7

BaksDev Field Country

Version php 8.4+ packagist

Пакет выпадающего списка стран

Установка

$ composer require baks-dev/field-country

Настройки

Для отображения в выпадающих списках полей, добавить настройку сервиса в конфиг:

config/packages/field.php

<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use BaksDev\Field\Country\Choice\CountryFieldChoice;

return static function (ContainerConfigurator $configurator) {
	
	$services = $configurator->services()
            ->defaults()
            ->autowire(true)
            ->autoconfigure(true)
	;

	/** Страны */
	$services->set(CountryFieldChoice::class)
		->tag('baks.fields.choice')
	;
};

Переопределение шаблонов

Шаблоны переопределяются в директории templates в виде текстового представления (content.html.twig), и шаблона ( template.html.twig)

  • /templates/field-country/content.html.twig
  • /templates/field-country/template.html.twig

Лицензия License

The MIT License (MIT). Обратитесь к Файлу лицензии за дополнительной информацией.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky