Tweaking many components after using them for a while

This commit is contained in:
2021-12-14 09:41:00 -07:00
parent 8916410167
commit 1c77ddde0b
7 changed files with 54 additions and 38 deletions

View File

@ -1,26 +1,40 @@
<snippet>
<content><![CDATA[
use Prunable; // \Illuminate\Database\Eloquent\Prunable
use HasUidTrait; // \App\Models\Traits\HasUidTrait
use App\Models\Traits\HasUidTrait;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Prunable;
use HasUidTrait;
use Prunable;
/** @var string */
protected \$table = '';
/** @var string */
protected \$keyType = 'string';
/** @var bool */
public \$incrementing = false;
/** @var array */
protected \$fillable = [];
/** @var array */
protected \$hidden = [];
/** @var array */
protected \$casts = [];
/** @var array */
protected \$dates = [];
/** @var array */
protected \$appends = [];
/** @var array */
protected \$touches = [];
/** @var array */
protected \$dispatchesEvents = [];
/*
@ -42,16 +56,20 @@ protected \$dispatchesEvents = [];
/**
* Get the prunable model query.
*
* @since 1.0.0
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function prunable(): Builder
{
return static::where('created_at', '<=', now()->subMonth());
//return static::where('created_at', '<=', now()->subMonth());
}
/**
* Prepare the model for pruning.
*
* @since 1.0.0
*
* @return void
*/
protected function pruning(): void