Uploading content

This commit is contained in:
David
2025-03-12 00:41:31 -04:00
parent b192e57eb5
commit f70ef52f9e
108 changed files with 13255 additions and 0 deletions

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

@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Product extends Model
{
use HasFactory;
protected $fillable = [
'name', 'description', 'price', 'stock', 'category', 'brand',
'sku', 'weight', 'status', 'order'
];
public function subDepartment() : BelongsTo
{
return $this->belongsTo(SubDepartment::class);
}
}