CharterBus
extends Model
in package
uses
HasFactory
CharterBus Model for managing charter bus service details and company information.
This model is used to create and manage charter bus service data including airport information, company details, contact information, and service descriptions. It provides a structured interface for storing and retrieving charter bus-specific information such as airport details, company names, contact phone numbers, company addresses, and service descriptions. The model supports comprehensive charter bus service management including airport connections, company information, contact details, and service descriptions for enhanced airport guide platform functionality and ground transportation services.
Table of Contents
Properties
- $airport_code : string
- $airport_id : int
- $airport_name : string
- $city : string
- $company_address : string
- $company_link : string|null
- $company_name : string
- $company_phone1 : string|null
- $company_phone2 : string|null
- $company_phone3 : string|null
- $created_at : string
- $created_by : int
- $description : string
- $id : int
- $state : string
- $updated_at : string
- $updated_by : int
- $zip_code : string
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable for charter bus service records.
Methods
- __construct() : void
- Initialize the CharterBus model with the correct database table configuration.
Properties
$airport_code
public
string
$airport_code
The airport code identifier
$airport_id
public
int
$airport_id
The foreign key reference to the airport
$airport_name
public
string
$airport_name
The name of the airport
$city
public
string
$city
The city where the airport is located
$company_address
public
string
$company_address
The company address
$company_link
public
string|null
$company_link
The company website URL
$company_name
public
string
$company_name
The charter bus company name
$company_phone1
public
string|null
$company_phone1
The primary company phone number
$company_phone2
public
string|null
$company_phone2
The secondary company phone number
$company_phone3
public
string|null
$company_phone3
The tertiary company phone number
$created_at
public
string
$created_at
Timestamp when the record was created
$created_by
public
int
$created_by
User ID who created the record
$description
public
string
$description
The service description or details
$id
public
int
$id
The unique identifier for the charter bus record
$state
public
string
$state
The state where the airport is located
$updated_at
public
string
$updated_at
Timestamp when the record was last updated
$updated_by
public
int
$updated_by
User ID who last updated the record
$zip_code
public
string
$zip_code
The ZIP code for the location
$fillable
The attributes that are mass assignable for charter bus service records.
protected
array<string|int, mixed>
$fillable
= ['id', 'airport_name', 'airport_code', 'city', 'state', 'zip_code', 'company_name', 'description', 'company_address', 'company_phone1', 'company_phone2', 'company_phone3', 'company_link', 'airport_id', 'created_by', 'updated_by', 'created_at', 'updated_at']
This property defines the fields that can be mass-assigned when creating or updating CharterBus records. It includes all essential charter bus service fields such as identification, airport information, company details, contact information, service descriptions, and metadata timestamps. The fillable attributes ensure data integrity while allowing efficient bulk operations for charter bus service management and ground transportation tracking across different airports and service providers.
Methods
__construct()
Initialize the CharterBus model with the correct database table configuration.
public
__construct() : void
This function is used to create a properly configured CharterBus model instance by setting the database table name from the configuration constants. It ensures that the model interacts with the correct database table for charter bus details data information, which is essential for proper charter bus service storage and retrieval operations. The constructor dynamically assigns the table name based on the CHARTER_BUS_DETAILS configuration constant to maintain flexibility and configuration-driven behavior for charter bus data management.