ldc-startcoq/app/Models/ProductComment.php

46 lines
893 B
PHP
Raw Normal View History

2023-02-22 11:51:36 +01:00
<?php
namespace App\Models;
2023-02-23 16:23:00 +01:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
2023-02-22 11:51:36 +01:00
use Illuminate\Database\Eloquent\Model;
/**
* @property integer $id
* @property integer $product_id
* @property string $evaluation
* @property string $aspect
* @property string $taste
* @property string $odor
* @property string $texture
* @property string $created_at
* @property string $updated_at
* @property Product $product
*/
class ProductComment extends Model
{
2023-02-23 16:23:00 +01:00
use HasFactory;
2023-02-22 11:51:36 +01:00
/**
* @var array
*/
protected $fillable = [
'product_id',
'evaluation',
'aspect',
'taste',
'odor',
'texture',
'created_at',
'updated_at'
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function product()
{
return $this->belongsTo('App\Models\Product');
}
}