AllStateAirports
extends Model
in package
uses
HasFactory
AllStateAirports Model for managing comprehensive state airport listings and information.
This model is used to create and manage state-specific airport data including basic airport information, geographic details, and operational statistics. It provides a structured interface for storing and retrieving airport data organized by state, including airport names, codes, city and state information, enplanement statistics, and airport type classifications. The model supports comprehensive state airport data management including geographic organization, operational statistics, and airport type categorization for enhanced airport guide platform functionality and state-specific airport listings.
Table of Contents
Properties
- $airport_name : string
- $airport_type : string
- $city : string
- $code : string
- $enplanements : int
- $id : int
- $state : string
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable for state airport records.
Methods
- __construct() : void
- Initialize the AllStateAirports model with the correct database table configuration.
Properties
$airport_name
public
string
$airport_name
The full name of the airport
$airport_type
public
string
$airport_type
The type or classification of the airport
$city
public
string
$city
The city name where the airport is located
$code
public
string
$code
The airport code (IATA/ICAO)
$enplanements
public
int
$enplanements
The number of enplaned passengers
$id
public
int
$id
The unique identifier for the state airport record
$state
public
string
$state
The state name where the airport is located
$fillable
The attributes that are mass assignable for state airport records.
protected
array<string|int, mixed>
$fillable
= ['id', 'airport_name', 'code', 'city', 'state', 'enplanements', 'airport_type']
This property defines the fields that can be mass-assigned when creating or updating AllStateAirports records. It includes all essential state airport fields such as identification, basic airport information, geographic details, operational statistics, and airport type classifications. The fillable attributes ensure data integrity while allowing efficient bulk operations for state airport data management and geographic organization of airport information.
Methods
__construct()
Initialize the AllStateAirports model with the correct database table configuration.
public
__construct() : void
This function is used to create a properly configured AllStateAirports model instance by setting the database table name from the configuration constants. It ensures that the model interacts with the correct database table for state airport data information, which is essential for proper state airport data storage and retrieval operations. The constructor dynamically assigns the table name based on the ALL_STATE_AIRPORTS configuration constant to maintain flexibility and configuration-driven behavior for state airport data management.