format('d M, Y'); } public function adjustedProducts() { return $this->hasMany(AdjustedProduct::class, 'adjustment_id', 'id'); } public function getReferenceAttribute($value) { return strtoupper($value) . '_' . str_pad($this->attributes['id'], 6, '0', STR_PAD_LEFT ); } }