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 authored and GitHub committed 2023-06-09 14:29:10 -05:00
1 parent fd2cebe3cf
commit 6015dcbbbf
548 files changed
+3022 -3075

No files matched your search

+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()
);
}
}