The Laravel framework soft delete fixer package.
blackplatinum/laravel-softdelete-fixer is a Laravel package for the laravel framework soft delete fixer package..
It currently has 1 GitHub stars and 13 downloads on Packagist (latest version v1.0.0).
Install it with composer require blackplatinum/laravel-softdelete-fixer.
Discover more Laravel packages by blackplatinum
or browse all Laravel packages to compare alternatives.
Last updated
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.
composer require blackplatinum/laravel-softdelete-fixer
Add this line to your models
Use SoftDeletesFix;
Add this key to your .env file with namespace of you model classes
MODEL_NAMESPACE=App