inventario/app/Models/Client.php
jesusfb a31af58b8f
All checks were successful
Deploy Laravel Directo / deploy (push) Successful in 5s
first commit
2026-04-24 17:34:00 -07:00

25 lines
390 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Client extends Model
{
protected $fillable = [
'company_id','nombre','email','telefono','direccion'
];
public function company()
{
return $this->belongsTo(Company::class);
}
public function cotizaciones()
{
return $this->hasMany(Cotizacion::class);
}
}