WIP: SoftDelete Contract/Payment/Customer, collected_by, Notifications, ProjectReport, ExportDebtReport
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user