Airport Guide Documentation

BusinessReviewDetails extends Model
in package
uses HasFactory

BusinessReviewDetails Model for managing business review details and user feedback information.

This model is used to create and manage business review data including review descriptions, user feedback, language preferences, and review interaction metrics. It provides a structured interface for storing and retrieving business-specific review information such as review content, review URLs, language classifications, user agreement/disagreement counts, and review dates. The model supports comprehensive business review management including review content, user interaction tracking, language support, and review moderation for enhanced airport guide platform functionality and business review systems.

Tags
used-by
TerminalController::getBusinessDetails()

Model to retrieve business reviews

Table of Contents

Properties

$agree_count  : int
$business_id  : int
$created_at  : string
$disagree_count  : int
$id  : int
$language  : string
$review_date  : string
$review_delete  : bool
$review_desc  : string
$updated_at  : string
$url  : string|null
$fillable  : array<string|int, mixed>
The attributes that are mass assignable for business review details records.

Methods

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

Properties

$fillable

The attributes that are mass assignable for business review details records.

protected array<string|int, mixed> $fillable = ['id', 'business_id', 'review_desc', 'url', 'language', 'agree_count', 'disagree_count', 'review_date', 'created_at', 'updated_at', 'review_delete']

This property defines the fields that can be mass-assigned when creating or updating BusinessReviewDetails records. It includes all essential business review fields such as identification, business relationships, review content, review URLs, language classifications, user interaction metrics, review dates, and deletion status. The fillable attributes ensure data integrity while allowing efficient bulk operations for business review management and user feedback tracking across different languages and review moderation systems.

Methods

__construct()

Initialize the BusinessReviewDetails model with the correct database table configuration.

public __construct() : void

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


        
On this page

Search results