mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
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:
@@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user