2021-02-10 11:38:29 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Rating extends Model
|
|
|
|
|
{
|
2021-06-16 10:10:39 +02:00
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'total', 'count', 'rating'
|
|
|
|
|
];
|
|
|
|
|
|
2021-02-10 11:38:29 +01:00
|
|
|
public function recipe()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Recipe::class);
|
|
|
|
|
}
|
|
|
|
|
}
|