定制 silvertipsoftware/laravel-support 二次开发

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

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

silvertipsoftware/laravel-support

最新稳定版本:v10.0.13

Composer 安装命令:

composer require silvertipsoftware/laravel-support

包简介

README 文档

README

when updating laravel version:

  • FluentModel get/set
  • ValidationExceptionWithMessages can go
  • MethodCallingRule comes back
  • HasTraits booting/initialize of traits
  • getForeignKey -> getForeignKeyName for BelongsTo
  • WithJson can use Resources

Laravel Support Package

This library adds a bunch of support functionality to core Laravel. Tries to be roughly analogous to the huge set of Rails functionality, but not strictly.

Eloquent Support

Autosaving Relations

Model Naming Helpers

Nested Attributes

Transactional Database Writes

Translation Support

Validation

Request/Response Support

Strong Parameters

One of the main problems with guarded attributes on models is that different parts of the code often have different rules for what attributes are fillable or not, eg. user controller vs admin controller vs background job, etc.

Strong parameters is a way of filtering input (usually on an individual controller level) and passing that to an unguarded model. That way, each individual controller can decide what attributes it's allowed to modify, and in the case of jobs, etc, permit modifying of all of them.

Individual models still may have guards on them, for global protection, but by default, they are all unguarded.

AutoResponds

Conditional Gets

Routing Support

REST-based URL generation

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-31