cotizaweb/app/Models/Producto.php
jesusfb 161fcee049
Some checks are pending
Deploy to EC2 cotiza / deploy (push) Waiting to run
first commit
2026-04-24 12:53:27 -07:00

28 lines
478 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Producto extends Model
{
use HasFactory;
protected $table = 'productos';
protected $fillable = [
'company_id',
'nombre',
'precio',
'descripcion',
'codigo_barras',
'foto',
];
public function company()
{
return $this->belongsTo(\App\Models\Company::class);
}
}