-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# laravel-softDelete-fixer | ||
### Description: | ||
As you know 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`. | ||
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: | ||
### 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=` | ||
Add this key to your `.env` file with namespace of you model classes | ||
`MODEL_NAMESPACE=App` |