This commit is contained in:
2024-10-12 16:17:16 +02:00
commit 1bdefcff66
65 changed files with 10816 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class NutritionFact extends Model
{
use HasFactory;
protected $fillable = ['product_id', 'nutrient', 'amount', 'unit'];
public function product()
{
return $this->belongsTo(Product::class);
}
}