|
|
|
@ -24,7 +24,7 @@ class AgentProduct extends BaseModel |
|
|
|
|
|
|
|
public function agent() |
|
|
|
{ |
|
|
|
return $this->belongsTo(Agent::class); |
|
|
|
return $this->belongsTo(Agent::class)->withTrashed(); |
|
|
|
} |
|
|
|
|
|
|
|
public function category() |
|
|
|
@ -39,7 +39,7 @@ class AgentProduct extends BaseModel |
|
|
|
|
|
|
|
public function guide() |
|
|
|
{ |
|
|
|
return $this->belongsTo(Guide::class); |
|
|
|
return $this->belongsTo(Guide::class)->withTrashed(); |
|
|
|
} |
|
|
|
|
|
|
|
public function item() |
|
|
|
|