AirportDetails
extends Model
in package
uses
HasFactory
AirportDetails Model for managing comprehensive airport information and details.
This model is used to create and manage airport details data including basic airport information, contact details, official links, and descriptive content. It provides a structured interface for storing and retrieving airport-specific data such as airport names, codes, official websites, Wikipedia links, AirNav references, contact information, addresses, and detailed descriptions. The model ensures proper database table configuration and maintains data integrity for airport information management across the airport guide platform.
Table of Contents
Properties
- $about : string|null
- $airnav_link : string|null
- $airport_address : string|null
- $airport_code : string
- $airport_name : string
- $contact_number : string|null
- $id : int
- $official_website : string|null
- $wikipedia_link : string|null
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable for airport details records.
Methods
- __construct() : void
- Initialize the AirportDetails model with the correct database table configuration.
Properties
$about
public
string|null
$about
Detailed description and information about the airport
$airnav_link
public
string|null
$airnav_link
The AirNav reference link for the airport
$airport_address
public
string|null
$airport_address
The physical address of the airport
$airport_code
public
string
$airport_code
The airport code (IATA/ICAO)
$airport_name
public
string
$airport_name
The full name of the airport
$contact_number
public
string|null
$contact_number
The airport contact phone number
$id
public
int
$id
The unique identifier for the airport details record
$official_website
public
string|null
$official_website
The official airport website URL
$wikipedia_link
public
string|null
$wikipedia_link
The Wikipedia page URL for the airport
$fillable
The attributes that are mass assignable for airport details records.
protected
array<string|int, mixed>
$fillable
= ['id', 'airport_name', 'airport_code', 'official_website', 'wikipedia_link', 'airnav_link', 'contact_number', 'airport_address', 'about']
This property defines the fields that can be mass-assigned when creating or updating AirportDetails records. It includes all essential airport information fields such as identification, basic details, contact information, official links, and descriptive content. The fillable attributes ensure data integrity while allowing efficient bulk operations for airport details management.
Methods
__construct()
Initialize the AirportDetails model with the correct database table configuration.
public
__construct() : void
This function is used to create a properly configured AirportDetails model instance by setting the database table name from the configuration constants. It ensures that the model interacts with the correct database table for airport details information, which is essential for proper data storage and retrieval operations. The constructor dynamically assigns the table name based on the AIRPORT_DETAILS configuration constant to maintain flexibility and configuration-driven behavior.