Erster Upload

This commit is contained in:
Malek Tellissi
2026-09-11 01:17:47 +02:00
commit 400172cdde
171 changed files with 18844 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Packing extends Model
{
use HasFactory;
protected $fillable = ['name', 'size'];
public function products() {
return $this->belongsToMany(Product::class, 'products_sizes')
->withPivot('price')
->withPivot('description')
->withTimestamps();
}
}