Added three column sin serial validation model file
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
This commit is contained in:
@@ -10,7 +10,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class SerialValidation extends Model
|
||||
{
|
||||
use Prunable;
|
||||
// use Prunable;
|
||||
use SoftDeletes;
|
||||
|
||||
protected $fillable = [
|
||||
@@ -30,6 +30,9 @@ class SerialValidation extends Model
|
||||
'batch_number',
|
||||
'quantity',
|
||||
'operator_id',
|
||||
'created_by',
|
||||
'updated_by',
|
||||
'panel_box_code',
|
||||
];
|
||||
|
||||
public function plant(): BelongsTo
|
||||
@@ -47,8 +50,8 @@ class SerialValidation extends Model
|
||||
return $this->belongsTo(StickerMaster::class, 'sticker_master_id');
|
||||
}
|
||||
|
||||
public function prunable(): Builder
|
||||
{
|
||||
return static::where('created_at', '<=', now()->subMonthsNoOverflow(6));
|
||||
}
|
||||
// public function prunable(): Builder
|
||||
// {
|
||||
// return static::where('created_at', '<=', now()->subMonthsNoOverflow(6));
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user