Airport Guide Documentation

BusinessOperationHours extends Model
in package
uses HasFactory

BusinessOperationHours Model for managing business operating schedules and hours information.

This model is used to create and manage business operating hours data including daily schedules, holiday information, and real-time availability status. It provides a structured interface for storing and retrieving business-specific operating information such as daily opening and closing times, holiday schedules, current availability status, and display text for operating hours. The model supports comprehensive business hours management including daily schedules, holiday accommodations, and real-time availability tracking for enhanced airport guide platform functionality and business schedule management.

Tags
used-by
TerminalController::getBusinessDetails()

Model to retrieve operation hours

Table of Contents

Properties

$business_id  : int
$created_at  : string
$display_text  : string
$friday_closed  : string
$friday_open  : string
$id  : int
$is_local_holiday  : bool
$monday_closed  : string
$monday_open  : string
$open_now  : bool
$saturday_closed  : string
$saturday_open  : string
$sunday_closed  : string
$sunday_open  : string
$thursday_closed  : string
$thursday_open  : string
$tuesday_closed  : string
$tuesday_open  : string
$updated_at  : string
$wednesday_closed  : string
$wednesday_open  : string
$fillable  : array<string|int, mixed>
The attributes that are mass assignable for business operation hours records.

Methods

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

Properties

$fillable

The attributes that are mass assignable for business operation hours records.

protected array<string|int, mixed> $fillable = ['id', 'business_id', 'display_text', 'is_local_holiday', 'open_now', 'sunday_open', 'sunday_closed', 'monday_open', 'monday_closed', 'tuesday_open', 'tuesday_closed', 'wednesday_open', 'wednesday_closed', 'thursday_open', 'thursday_closed', 'friday_open', 'friday_closed', 'saturday_open', 'saturday_closed', 'created_at', 'updated_at']

This property defines the fields that can be mass-assigned when creating or updating BusinessOperationHours records. It includes all essential business hours fields such as identification, business relationships, display text, holiday information, current availability status, and daily operating schedules for all days of the week. The fillable attributes ensure data integrity while allowing efficient bulk operations for business hours management and schedule tracking across different time zones and holiday accommodations.

Methods

__construct()

Initialize the BusinessOperationHours model with the correct database table configuration.

public __construct() : void

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


        
On this page

Search results