承接 yhy/laravel-lib 相关项目开发

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

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

yhy/laravel-lib

最新稳定版本:2.0

Composer 安装命令:

composer require yhy/laravel-lib

包简介

laravel lib

README 文档

README

laravel lib

  1. laravel 软删除改造成boolean类型 字段为 deleted
 在model类中例如UserModel使用 use Yhy\LaravelLib\BoolreanSoftDeletes
 const DELETED = 'deleted' // 对应数据可的字段,默认为deleted
  1. model json 和 时间戳类型转换
 在model类中例如UserModel
  protected $casts = [
        'created_at' => new DateTime(),
        'text_json' => new Json()
    ];
  1. 验证规则: 金额, 银行卡号, 中文名, 英文名, 邮箱,邮政编码,身份证号, 手机 , 座机, 密码, 用户名,评分,中文
    在Request类中例如AddUserRequest
    public function rules()
    {
       return [
           'amount' => ['required',new AmountRule()],
           'email' => ['required',new EmailRule()]
       ];
    }

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-05