Airport Guide Documentation

BusinessCategories extends Model
in package
uses HasFactory

BusinessCategories Model for managing business category classifications and metadata.

This model is used to create and manage business category data including category names, short names, plural forms, and visual icons for business classification systems. It provides a structured interface for storing and retrieving business category information such as category identifiers, naming conventions, and visual representation data. The model supports comprehensive business category data management including category naming, visual icons, and classification metadata for enhanced airport guide platform functionality and business categorization systems.

Tags
used-by
TerminalController::showBusinessList()

Model to retrieve business category information

Table of Contents

Properties

$business_id  : int
$created_at  : string
$icon  : string|null
$id  : int
$name  : string
$plural_name  : string
$short_name  : string
$updated_at  : string
$fillable  : array<string|int, mixed>
The attributes that are mass assignable for business category records.

Methods

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

Properties

$plural_name

public string $plural_name

The plural form of the business category name

$short_name

public string $short_name

The abbreviated name of the business category

$fillable

The attributes that are mass assignable for business category records.

protected array<string|int, mixed> $fillable = ['id', 'business_id', 'name', 'short_name', 'plural_name', 'icon', 'created_at', 'updated_at']

This property defines the fields that can be mass-assigned when creating or updating BusinessCategories records. It includes all essential business category fields such as identification, business relationships, category naming conventions, visual icons, and metadata timestamps. The fillable attributes ensure data integrity while allowing efficient bulk operations for business category data management and classification system organization.

Methods

__construct()

Initialize the BusinessCategories model with the correct database table configuration.

public __construct() : void

This function is used to create a properly configured BusinessCategories 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 category data information, which is essential for proper business category data storage and retrieval operations. The constructor dynamically assigns the table name based on the BUSINESS_CATEGORIES configuration constant to maintain flexibility and configuration-driven behavior for business category data management.


        
On this page

Search results