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
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
$agree_count
public
int
$agree_count
The number of users who agreed with the review
$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
$disagree_count
public
int
$disagree_count
The number of users who disagreed with the review
$id
public
int
$id
The unique identifier for the business review details record
$language
public
string
$language
The language of the review
$review_date
public
string
$review_date
The date when the review was posted
$review_delete
public
bool
$review_delete
Whether the review has been marked for deletion
$review_desc
public
string
$review_desc
The review description or content
$updated_at
public
string
$updated_at
Timestamp when the record was last updated
$url
public
string|null
$url
The URL associated with the review
$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.