refactor: migration from laravel-enum package to native php enums (#585)

* refactor: migration from laravel-enum package to native php enums

* style: fix StyleCI findings
This commit is contained in:
paranarimasu
2023-06-09 14:29:10 -05:00
committed by GitHub
parent fd2cebe3cf
commit 6015dcbbbf
548 changed files with 3022 additions and 3075 deletions
+5 -1
View File
@@ -93,6 +93,10 @@ abstract class BaseModel extends Model implements Nameable
*/
public function prunable(): Builder
{
return static::onlyTrashed()->where(BaseModel::ATTRIBUTE_DELETED_AT, ComparisonOperator::LTE, now()->subWeek());
return static::onlyTrashed()->where(
BaseModel::ATTRIBUTE_DELETED_AT,
ComparisonOperator::LTE->value,
now()->subWeek()
);
}
}