cybercog / laravel-eloquent-flag

Laravel Eloquent boolean & timestamp flagged attributes behavior.
https://komarev.com/sources/laravel-eloquent-flag
MIT License
133 stars 21 forks source link

Add getQualified***Column method #60

Open Serge3d opened 4 years ago

Serge3d commented 4 years ago

In SoftDeletes trait getQualifiedDeletedAtColumn() method is used to avoid errors in queries when join is used. Sample: public function apply(Builder $builder, Model $model) { $builder->whereNull($model->getQualifiedDeletedAtColumn()); } It is necessary to add similar functionality to this package.