Initial commit

This commit is contained in:
2025-10-11 17:02:49 +02:00
commit 92056f073f
243 changed files with 27536 additions and 0 deletions

22
app/Models/Ingredient.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use App\Models\Product;
class Ingredient extends Model
{
use HasFactory;
protected $fillable = [
'name',
'sort_order',
];
public function products()
{
return $this->belongsToMany(Product::class);
}
}