michaeld555/filament-fields 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

michaeld555/filament-fields

最新稳定版本:v1.0.3

Composer 安装命令:

composer require michaeld555/filament-fields

包简介

Filament brazilians fields for filament forms

README 文档

README

Installation

Require this package in your composer.json and update composer. This will download the package.

composer require michaeld555/filament-fields

Using the fields

To create a money input use:

    use Michaeld555\MoneyInput;

    MoneyInput::make('value')
    ->prefix('R$')

To create a cep input use:

    use Michaeld555\CepInput;

    Cep::make('postal_code')
    ->viaCep(
        mode: 'suffix', // Determines whether the action should be appended to (suffix) or prepended to (prefix) the cep field, or not included at all (none).
        errorMessage: 'CEP inválido.', // Error message to display if the CEP is invalid.

        /**
         * Other form fields that can be filled by ViaCep.
         * The key is the name of the Filament input, and the value is the ViaCep attribute that corresponds to it.
         * More information: https://viacep.com.br/
         */
        setFields: [
            'street' => 'logradouro',
            'number' => 'numero',
            'complement' => 'complemento',
            'district' => 'bairro',
            'city' => 'localidade',
            'state' => 'uf'
        ],
        citiesTable: 'cities', // if you want to set a field with information from your cities table in the database
        ibgeColumn: 'igbe_code',  // the name of your column in the cities database that receives the IBGE code
    ),

统计信息

  • 总下载量: 149
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-27