Airport Guide Documentation

FacilityType extends Model
in package
uses HasFactory

FacilityType Model for managing facility type classifications and categories.

This model is used to create and manage facility type data including facility classifications and type categorizations for airport facilities. It provides a structured interface for storing and retrieving facility type information such as facility type identifiers and type classifications. The model supports comprehensive facility type management including type categorization, facility classification, and type organization for enhanced airport guide platform functionality and facility management systems.

Table of Contents

Properties

$fac_type  : string
$id  : int
$fillable  : array<string|int, mixed>
The attributes that are mass assignable for facility type records.

Methods

__construct()  : void
Initialize the FacilityType model with the correct database table configuration.

Properties

$fac_type

public string $fac_type

The facility type classification or category

$id

public int $id

The unique identifier for the facility type record

$fillable

The attributes that are mass assignable for facility type records.

protected array<string|int, mixed> $fillable = ['id', 'fac_type']

This property defines the fields that can be mass-assigned when creating or updating FacilityType records. It includes all essential facility type fields such as identification and facility type classifications. The fillable attributes ensure data integrity while allowing efficient bulk operations for facility type management and categorization across different facility types and classification systems.

Methods

__construct()

Initialize the FacilityType model with the correct database table configuration.

public __construct() : void

This function is used to create a properly configured FacilityType model instance by setting the database table name from the configuration constants. It ensures that the model interacts with the correct database table for facility type data information, which is essential for proper facility type storage and retrieval operations. The constructor dynamically assigns the table name based on the FACILITY_TYPE configuration constant to maintain flexibility and configuration-driven behavior for facility type data management.


        
On this page

Search results