MozioTransportReservation
extends Model
in package
uses
HasFactory, Sortable
Mozio Transport Reservation Model
This model manages transport reservations for Mozio services. It stores customer information, flight details, pickup/drop-off locations, and pricing information for transport bookings.
Table of Contents
Properties
- $fillable : array<string|int, string>
- The attributes that are mass assignable.
Methods
- __construct() : void
- Create a new MozioTransportReservation model instance.
- customerReservationDetails() : HasMany
- Get the customer reservation details for this transport reservation.
Properties
$fillable
The attributes that are mass assignable.
protected
array<string|int, string>
$fillable
= ['id', 'first_name', 'last_name', 'email', 'phone_number', 'country_code', 'airline', 'flight_number', 'result_id', 'search_id', 'loc_id', 'amount', 'created_at', 'updated_at', 'pickup_datetime', 'drop_to', 'pickup_from']
Methods
__construct()
Create a new MozioTransportReservation model instance.
public
__construct() : void
Sets the table name from configuration constants.
customerReservationDetails()
Get the customer reservation details for this transport reservation.
public
customerReservationDetails() : HasMany
Establishes a has-many relationship with MozioCustomerReservationDetails using customer_id as the foreign key.