23 lines
687 B
PHP
23 lines
687 B
PHP
<?php
|
|
|
|
namespace App\Models\Server;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class ReportAnswer extends Model
|
|
{
|
|
use SoftDeletes;
|
|
protected $fillable = [];
|
|
protected $guarded = [];
|
|
public function mUser(){
|
|
return $this->belongsTo(MerchantUser::class,'m_user_id','id')->select('id','nickname','pic','mobile');
|
|
}
|
|
public function question(){
|
|
return $this->belongsTo(ReportQuestion::class,'question_id','id')->select('id','type','type_id', 'title');
|
|
}
|
|
public function order(){
|
|
return $this->belongsTo(TouristOrder::class,'m_order_id','id')->select('id','type','type_id','price');
|
|
}
|
|
}
|