WIP: SoftDelete Contract/Payment/Customer, collected_by, Notifications, ProjectReport, ExportDebtReport

This commit is contained in:
2026-04-29 04:46:58 +00:00
parent 0712046f4b
commit 78c22690eb
18 changed files with 1015 additions and 12 deletions

View File

@@ -5,10 +5,11 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Payment extends Model
{
use HasUuids, HasFactory;
use HasUuids, HasFactory, SoftDeletes;
protected $guarded = [];
@@ -27,4 +28,9 @@ class Payment extends Model
{
return $this->belongsTo(PaymentScheduleItem::class, 'schedule_item_id');
}
public function collector()
{
return $this->belongsTo(User::class, 'collected_by');
}
}