Overview
TheCliente model represents clients in the VIP2CARS system. It handles client information including personal details, contact information, and manages the relationship with their vehicles.
Database Configuration
Database table name
Primary key column name
Fillable Attributes
The following attributes can be mass-assigned:Client’s first name(s)
Client’s last name(s)
Client’s document number (ID card, passport, etc.)
Client’s email address
Client’s phone number
Relationships
vehiculos()
Defines a one-to-many relationship with the Vehiculo model. A client can have multiple vehicles. Relationship Type:hasMany
Related Model: App\Models\Vehiculo
Foreign Key: id_cliente
Local Key: id_cliente
Usage Examples
Model Source
Location:app/Models/Cliente.php
View Full Model Source Code
View Full Model Source Code
Related Documentation
- Vehiculo Model - Related vehicle model
- ClienteController - Controller handling client operations