https://github.com/blackplatinum/laravel-softdelete-fixer
https://github.com/blackplatinum/laravel-softdelete-fixer
laravel softdelete
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/blackplatinum/laravel-softdelete-fixer
- Owner: BlackPlatinum
- License: mit
- Created: 2020-04-18T20:59:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T20:43:54.000Z (about 6 years ago)
- Last Synced: 2025-05-13T12:51:05.083Z (about 1 year ago)
- Topics: laravel, softdelete
- Language: PHP
- Homepage: https://packagist.org/packages/blackplatinum/laravel-softdelete-fixer
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-softDelete-fixer
### 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`