定制 softlogic-gt/laravel-validation-rules-gt 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

softlogic-gt/laravel-validation-rules-gt

最新稳定版本:v1.0.3

Composer 安装命令:

composer require softlogic-gt/laravel-validation-rules-gt

包简介

A set of useful Laravel validation rules for Guatemala (GT)

README 文档

README

This repository contains useful Laravel validation rules for Guatemalan documents:

Installation

You can install the package via composer:

composer require softlogic-gt/laravel-validation-rules-gt

The package will automatically register itself.

Translations

If you wish to edit the package translations, you can run the following command to publish them into your resources/lang folder

php artisan vendor:publish --provider="SoftlogicGT\ValidationRulesGT\ValidationRulesGTServiceProvider"

Available rules

DPI

Determine if the field under validation is a valid Guatemalan DPI.

use SoftlogicGT\ValidationRulesGT\Rules\Dpi;

public function rules()
{
    $rules = [
        'dpi' => ['required', new Dpi()],
    ];
    $request->validate($rules)
}

NIT

Determine if the field under validation is a valid Guatemalan Tax ID (NIT).

use SoftlogicGT\ValidationRulesGT\Rules\Nit;

public function rules()
{
    $rules = [
        'nit' => ['required', new Nit()],
    ];
    $request->validate($rules)
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固