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

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

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

vlauciani/laravel-validation-rules

最新稳定版本:v1.3.0

Composer 安装命令:

composer create-project vlauciani/laravel-validation-rules

包简介

Validation rules for Laravel.

README 文档

README

Tests Packagist License Total Downloads

Installation

composer require vlauciani/laravel-validation-rules:^1.0.0

Available Rules

RFC3339Extended

PHP doesn't validate correctly RFC3339: laravel/framework#35387

  • for example 2020-12-21T23:59:59+00:00 or 2020-12-21T23:59:59Z return false but it is true.

this Rule uniform the date in format: YYYY-MM-DDThh:mm:ss.mmm+nn:nn

Usage

<?php
namespace App\Api\Controllers;
use App\Http\Controllers\Controller;
use VLauciani\LaravelValidationRules\Rules\RFC3339ExtendedRule;

class MyController extends Controller
{
    public function index()
    {
        $myData = ['starttime' => '2022-04-06T12:00:00.123+00:00']
        Validator::make($myData, [
            'starttime'           => [new RFC3339ExtendedRule()],
        ])->validate();
    }
}

Contribute

Thanks to your contributions!

Here is a list of users who already contributed to this repository:

Author

(c) 2022 Valentino Lauciani vlauciani[at]gmail.com

Thanks to

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固