承接 wemersonrv/input-mask 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

wemersonrv/input-mask

最新稳定版本:v0.1.2

Composer 安装命令:

composer require wemersonrv/input-mask

包简介

A Laravel Nova custom field text with masks on input

README 文档

README

Nova custom field text with masks.

Latest Version on Github

Nova custom field text with masks. It uses vue-the-mask to implement mask directive to input field.

inputmask

Installation

composer require wemersonrv/input-mask

Usage

Import it in your resources and add the InputMask to fields method.

use Wemersonrv\InputMask\InputMask;

public function fields(Request $request)
{
    return [
        ID::make('ID', 'id')->sortable(),
        Text::make('Name', 'name'),

        InputMask::make('CPF', 'cpf')
            ->mask('###.###.###-##')  // 111.222.333.44
            ->raw(),                  // 11122233344

    ];
}

Methods

This custom field has only two method:

  • mask('###...') Implement the mask on your input field;
  • raw() If you want to save your value without mask, just add this method.

TODO List

  • Apply mask to index and detail fields
  • Create a set of predefined custom fields from InputMask with validation
    • Brazilian CPF
    • Brazilian CNPJ
    • Brazilian Zip code (CEP)
    • Brazilian landline phone
    • Brazilian mobile phone with 9 digit

Release History

  • 0.1.2
    • Fix license in composer.json from GPLv3 to GPL-3.0-or-later
  • 0.1.1
    • Fix license in composer.json o GPLv3
  • 0.1.0
    • The First Oficial release
    • CHANGE: Nothing important.
    • ADD: button badge for github release
  • 0.0.1
    • Work in progress

References

Meta

Wemerson Guimarães – @WemersonCGwemersonrv@gmail.com

Distributed under the GPLv3 license. See LICENSE.md for more information.

https://github.com/wemersonrv/input-mask/

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 4
  • 开发语言: Vue

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2019-05-16