BusinessChains
extends Model
in package
uses
HasFactory
BusinessChains Model for managing business chain relationships and organizational data.
This model is used to create and manage business chain data including chain identification, business relationships, and chain naming information for organizational structures. It provides a structured interface for storing and retrieving business chain information such as chain identifiers, business relationships, and chain naming conventions. The model supports comprehensive business chain data management including chain identification, business relationships, and organizational structure information for enhanced airport guide platform functionality and business chain management systems.
Table of Contents
Properties
- $business_id : int
- $created_at : string
- $id : int
- $name : string
- $updated_at : string
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable for business chain records.
Methods
- __construct() : void
- Initialize the BusinessChains model with the correct database table configuration.
Properties
$business_id
public
int
$business_id
The foreign key reference to the business
$created_at
public
string
$created_at
Timestamp when the record was created
$id
public
int
$id
The unique identifier for the business chain record
$name
public
string
$name
The name of the business chain
$updated_at
public
string
$updated_at
Timestamp when the record was last updated
$fillable
The attributes that are mass assignable for business chain records.
protected
array<string|int, mixed>
$fillable
= ['id', 'business_id', 'name', 'created_at', 'updated_at']
This property defines the fields that can be mass-assigned when creating or updating BusinessChains records. It includes all essential business chain fields such as identification, business relationships, chain naming information, and metadata timestamps. The fillable attributes ensure data integrity while allowing efficient bulk operations for business chain data management and organizational structure tracking.
Methods
__construct()
Initialize the BusinessChains model with the correct database table configuration.
public
__construct() : void
This function is used to create a properly configured BusinessChains model instance by setting the database table name from the configuration constants. It ensures that the model interacts with the correct database table for business chain data information, which is essential for proper business chain data storage and retrieval operations. The constructor dynamically assigns the table name based on the BUSINESS_CHAINS configuration constant to maintain flexibility and configuration-driven behavior for business chain data management.