blackplatinum/laravel-softdelete-fixer
Composer 安装命令:
composer require blackplatinum/laravel-softdelete-fixer
包简介
The Laravel framework soft delete fixer package.
README 文档
README
Description:
Unfortunately when you join a table using Eloquent join methods (inner, outer, left etc), it doesn't check soft delete trait used in model and join all rows also deleted_at columns that ARE NOT null.
With this package and using it in your models, it will check deleted_at rows.
How To Install:
composer require blackplatinum/laravel-softdelete-fixer
How To Use:
First:
Add this line to your models
Use SoftDeletesFix;
Second:
Add this key to your .env file with namespace of you model classes
MODEL_NAMESPACE=App
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-18