softlogic-gt/laravel-validation-rules-container 问题修复 & 功能扩展

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

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

softlogic-gt/laravel-validation-rules-container

最新稳定版本:v1.0.3

Composer 安装命令:

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

包简介

A set of useful Laravel validation rules for shipping containers

README 文档

README

This repository contains useful Laravel validation rules for shipping container numbers, based on: https://github.com/stormpat/Container-validator/blob/master/src/Validator/Validator.php

Installation

You can install the package via composer:

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

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\ValidationRulesContainer\ValidationRulesContainerServiceProvider"

Available rules

Container

Determine if the field under validation is a valid shipping container.

use SoftlogicGT\ValidationRulesContainer\Rules\Container;

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-16