Current
extends Model
in package
uses
HasFactory
Current Model for managing current status and state information.
This model is used to create and manage current status data including state information and current values for various system components. It provides a structured interface for storing and retrieving current status information such as current state values, status indicators, and system state data. The model supports comprehensive current status management including state tracking, status monitoring, and current value management for enhanced airport guide platform functionality and system state management.
Table of Contents
Properties
- $current : string
- $id : int
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable for current status records.
Methods
- __construct() : void
- Initialize the Current model with the correct database table configuration.
Properties
$current
public
string
$current
The current status or state value
$id
public
int
$id
The unique identifier for the current status record
$fillable
The attributes that are mass assignable for current status records.
protected
array<string|int, mixed>
$fillable
= ['id', 'current']
This property defines the fields that can be mass-assigned when creating or updating Current records. It includes all essential current status fields such as identification and current status values. The fillable attributes ensure data integrity while allowing efficient bulk operations for current status management and state tracking across different system components and status indicators.
Methods
__construct()
Initialize the Current model with the correct database table configuration.
public
__construct() : void
This function is used to create a properly configured Current model instance by setting the database table name from the configuration constants. It ensures that the model interacts with the correct database table for current status data information, which is essential for proper current status storage and retrieval operations. The constructor dynamically assigns the table name based on the CURRENT configuration constant to maintain flexibility and configuration-driven behavior for current status data management.