<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Models;use Illuminate\Database\Eloquent\Model;use Illuminate\Database\Eloquent\SoftDeletes;class Comment extends Model{use SoftDeletes;protected $dates=['deleted_at'];protected $guarded=[];public function product(){return $this->belongsTo(Product::class,'product_id','id');}public function credit(){return $this->belongsTo(Credit::class,'credit_id','id');}public function apply(){return $this->belongsTo(Apply::class,'apply_id','id');}public function member(){return $this->belongsTo(Member::class,'mid','id');}public function reply(){return $this->hasMany(CommentReply::class,'comment_id','id');}}
?>