Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Baha2rM98 authored Apr 23, 2020
1 parent b8bbea7 commit f165475
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
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`

0 comments on commit f165475

Please sign in to comment.