没有合适的资源?快使用搜索试试~ 我知道了~
single-table-inheritance:EloquentLaravel的单表继承特性
共36个文件
php:30个
gitignore:1个
json:1个
需积分: 9 0 下载量 84 浏览量
2021-04-29
10:01:53
上传
评论
收藏 27KB ZIP 举报
温馨提示
单表继承 单表继承是Laravel 5.8+口才模型的特征,它允许将多个模型存储在同一数据库表中。 我们支持一些关键功能 实现为Trait,以便与其他语言(例如Laravel的SoftDeletingTrait或出色的,不需要复杂的SoftDeletingTrait Model子类。 允许任意的类层次结构,而不仅仅是两级父子关系。 可定制的数据库列名称,用于存储模型类型。 数据库中存储的模型类型值的可定制字符串。 (与强制使用完全限定的模型类名称相对。) 允许未映射到已知模型类型的数据库行。 它们将永远不会在查询中返回。 安装 只需将软件包添加到您的composer.json文件并运行composer update 。 "nanigans/single-table-inheritance": "~1.0" 或转到composer.json文件所在的项目目录,然后键入: com
资源推荐
资源详情
资源评论
收起资源包目录
single-table-inheritance-main.zip (36个子文件)
single-table-inheritance-main
composer.json 1006B
phpunit.xml 541B
.github
workflows
ci.yml 890B
tests
SingleTableInheritanceTraitStaticMethodsTest.php 3KB
Fixtures
Truck.php 150B
Taxi.php 314B
AudioMP3.php 273B
Bike.php 204B
Audio.php 268B
MP4Video.php 153B
User.php 283B
MotorVehicle.php 430B
WMVVideo.php 153B
Car.php 193B
File.php 460B
Listing.php 283B
Video.php 568B
Vehicle.php 2KB
SingleTableInheritanceTraitModelMethodsTest.php 8KB
SingleTableInheritanceTraitPersistenceTest.php 4KB
migrations
2014_09_12_210504_create_vehicle_table.php 692B
2019_03_16_210504_create_listings_table.php 470B
2019_03_16_210504_create_listing_vehicle_table.php 474B
2014_09_12_210504_create_users_table.php 462B
SingleTableInheritanceTraitManyToManyTest.php 2KB
TestCase.php 2KB
SingleTableInheritanceTraitQueryTest.php 8KB
src
SingleTableInheritanceScope.php 2KB
SingleTableInheritanceObserver.php 206B
Exceptions
SingleTableInheritanceWrongInheritanceException.php 161B
SingleTableInheritanceInvalidAttributesException.php 511B
SingleTableInheritanceException.php 124B
SingleTableInheritanceTrait.php 9KB
.gitignore 87B
README.md 8KB
LICENSE.txt 1KB
共 36 条
- 1
资源评论
西西里上尉
- 粉丝: 24
- 资源: 4667
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功