承接 weap-io/laravel-validation-rules 相关项目开发

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

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

weap-io/laravel-validation-rules

Composer 安装命令:

composer require weap-io/laravel-validation-rules

包简介

A collection of Laravel validation rules

README 文档

README

A set of useful Laravel validation rules crafted and maintained by Weap.io.

Installation

Install the package:

composer require weap-io/laravel-validation-rules

Network

Hostname

Validate a hostname.

use Weap\LaravelValidationRules\Rules\Network\Hostname;

// Given input must be a valid hostname (with or without TLD)
return [
    'host' => ['required', new Hostname()]
]

// Given input must be a valid hostname without TLD
return [
    'host' => ['required', new Hostname($withTld = false)]
]

Port

Validate a port number.

use Weap\LaravelValidationRules\Rules\Network\Port;

// The input must be a valid port number (0 excluded)
return [
    'port' => ['required', new Port()]
];

// The input must be a valid port number (0 included)
return [
    'port' => ['required', new Port($allowZero = true)]
];

Bank

IBAN

Validate an IBAN.

use Weap\LaravelValidationRules\Rules\Bank\Iban;

return [
   'iban' => ['required', new Iban()]
];

BIC

Validate a BIC.

use Weap\LaravelValidationRules\Rules\Bank\Bic;

return [
    'bic' => ['required', new Bic()]
];

Services/Aws

S3 Bucket name

Validate an S3 Bucket name

use Weap\LaravelValidationRules\Rules\Services\Aws\S3BucketName;

return [
    'bucket_name' => ['required', new S3BucketName()],
];

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固