This commit is contained in:
gianella
2025-12-09 17:28:51 -03:00
parent 33df24d40b
commit d71f33b0ed
10 changed files with 305 additions and 72 deletions
+1 -10
View File
@@ -8,16 +8,7 @@ use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
use HasFactory;
protected $fillable = [
'codigo',
'nombre',
'costo',
'precio',
'stock',
'min_stock',
'categoria',
'descripcion'
];
protected $guarded = [];
public function supplier()
{
return $this->belongsTo(Suppliers::class);