An open API service indexing awesome lists of open source software.

https://github.com/blackplatinum/laravel-softdelete-fixer


https://github.com/blackplatinum/laravel-softdelete-fixer

laravel softdelete

Last synced: about 1 month ago
JSON representation

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`