<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
class Comment extends Model
{
use HasDateTimeFormatter;
protected $table = 'Comment';
public function goods()
{
return $this->belongsTo(Good::class, 'goods_id');
}
}