<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Comment extends Model
{
    protected $fillable = ['name','email','subject','comment', 'product_id'];

    public function user(){
        return $this->belongsTo(User::class,'user_id');
    }
    
    
}

