<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Views extends Model
{
  public function user()
  {
      return $this->belongsTo(User::class);
  }
  /**
  * The table asspciated with the Model.
  * @var  string
  */
  // table
  protected $table ='views';
  /**
  * The attributes that are mass assignble.
  *
  * @var arry
  */
  // ข้อมูลใน table
  protected $fillable= [
    'name','name1','price','detail','photo'
  ];

}
