tablas y modelos

This commit is contained in:
GianellaDelMestre
2025-12-07 00:08:18 -03:00
parent 2f0a256b6c
commit 832f9228af
12 changed files with 298 additions and 14 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Supplier extends Model
{
protected $fillable = [
'nombre',
'telefono',
'email'
];
public function products()
{
return $this->hasMany(Product::class);
}
}