Merge branch 'bryam' of https://github.com/BryamE/ProyectoLauck into giane

This commit is contained in:
Bryam105
2025-12-09 11:07:22 -03:30
27 changed files with 935 additions and 192 deletions
+10
View File
@@ -2,15 +2,25 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Client extends Model
{
use HasFactory;
protected $guarded = [];
protected $fillable = ['name', 'phone', 'email', 'address'];
// Un usuario (cliente) realiza muchas compras (ventas)
public function sales()
{
return $this->hasMany(Sale::class);
}
// Relación: Un cliente tiene muchos turnos
public function appointments()
{
return $this->hasMany(Appointment::class);
}
}